Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device

ABSTRACT

A three-dimensional data encoding method including; generating a layered structure including one or more layers by hierarchically arranging three-dimensional points each having an attribute information item; encoding the attribute information item of each of the three-dimensional points using the layered structure; and generating a first bitstream including the attribute information item encoded and an identification information item indicating whether the three-dimensional points used in the hierarchical arranging are re-ordered in Morton order before the hierarchical arranging.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a U.S. continuation application of PCT InternationalPatent Application Number PCT/JP2021/000510 filed on Jan. 8, 2021,claiming the benefit of priority of U.S. Provisional Patent ApplicationNo. 62/958,974 filed on Jan. 9, 2020, the entire contents of which arehereby incorporated by reference.

BACKGROUND 1. Technical Field

The present disclosure relates to a three-dimensional data encodingmethod, a three-dimensional data decoding method, a three-dimensionaldata encoding device, and a three-dimensional data decoding device.

2. Description of the Related Art

Devices or services utilizing three-dimensional data are expected tofind their widespread use in a wide range of fields, such as computervision that enables autonomous operations of cars or robots, mapinformation, monitoring, infrastructure inspection, and videodistribution. Three-dimensional data is obtained through various meansincluding a distance sensor such as a rangefinder, as well as a stereocamera and a combination of a plurality of monocular cameras.

Methods of representing three-dimensional data include a method known asa point cloud scheme that represents the shape of a three-dimensionalstructure by a point cloud in a three-dimensional space. In the pointcloud scheme, the positions and colors of a point cloud are stored.While point cloud is expected to be a mainstream method of representingthree-dimensional data, a massive amount of data of a point cloudnecessitates compression of the amount of three-dimensional data byencoding for accumulation and transmission, as in the case of atwo-dimensional moving picture (examples include Moving Picture ExpertsGroup-4 Advanced Video Coding (MPEG-4 AVC) and High Efficiency VideoCoding (HEVC) standardized by MPEG).

Meanwhile, point cloud compression is partially supported by, forexample, an open-source library (Point Cloud Library) for pointcloud-related processing.

Furthermore, a technique for searching for and displaying a facilitylocated in the surroundings of the vehicle by using three-dimensionalmap data is known (for example, see International Publication WO2014/020663).

SUMMARY

There has been a demand for notifying a three-dimensional decodingdevice of whether low delay coding or high efficiency coding has beenperformed in encoding of three-dimensional data.

The present disclosure has an object to provide a three-dimensional dataencoding method, a three-dimensional data decoding method, athree-dimensional data encoding device, or a three-dimensional datadecoding device that is capable of notifying a three-dimensional datadecoding device of whether low delay coding or high efficiency codinghas been performed in encoding.

A three-dimensional data encoding method according to one aspect of thepresent disclosure is a three-dimensional data encoding method forencoding three-dimensional points each having an attribute informationitem, and includes: generating a layered structure including one or morelayers by hierarchically arranging the three-dimensional points;encoding the attribute information item of each of the three-dimensionalpoints using the layered structure; and generating a first bitstreamincluding the attribute information item encoded and an identificationinformation item indicating whether the three-dimensional points used inthe hierarchical arranging are re-ordered in Morton order before thehierarchical arranging.

A three-dimensional data decoding method according to one aspect of thepresent disclosure includes: obtaining a bitstream including anattribute information item encoded based on three-dimensional pointsarranged hierarchically to form a layered structure including one ormore layers; and decoding the attribute information item encoded, basedon whether the bitstream includes an identification information itemindicating whether the three-dimensional points are re-ordered in Mortonorder.

It is to be noted that these general or specific aspects may beimplemented as a system, a method, an integrated circuit, a computerprogram, or a computer-readable recording medium such as a CD-ROM, ormay be implemented as any combination of a system, a method, anintegrated circuit, a computer program, and a recording medium.

The present disclosure provides a three-dimensional data encodingmethod, a three-dimensional data decoding method, a three-dimensionaldata encoding device, or a three-dimensional data decoding device thatis capable of notifying a three-dimensional data decoding device ofwhether low delay coding or high efficiency coding has been performed inencoding.

BRIEF DESCRIPTION OF DRAWINGS

These and other objects, advantages and features of the disclosure willbecome apparent from the following description thereof taken inconjunction with the accompanying drawings that illustrate a specificembodiment of the present disclosure.

FIG. 1 is a diagram illustrating a configuration of a three-dimensionaldata encoding and decoding system according to Embodiment 1;

FIG. 2 is a diagram illustrating a structure example of point cloud dataaccording to Embodiment 1;

FIG. 3 is a diagram illustrating a structure example of a data fileindicating the point cloud data according to Embodiment 1;

FIG. 4 is a diagram illustrating types of the point cloud data accordingto Embodiment 1;

FIG. 5 is a diagram illustrating a structure of a first encoderaccording to Embodiment 1;

FIG. 6 is a block diagram illustrating the first encoder according toEmbodiment 1;

FIG. 7 is a diagram illustrating a structure of a first decoderaccording to Embodiment 1;

FIG. 8 is a block diagram illustrating the first decoder according toEmbodiment 1;

FIG. 9 is a block diagram of a three-dimensional data encoding deviceaccording to Embodiment 1;

FIG. 10 is a diagram showing an example of geometry informationaccording to Embodiment 1;

FIG. 11 is a diagram showing an example of an octree representation ofgeometry information according to Embodiment 1;

FIG. 12 is a block diagram of a three-dimensional data decoding deviceaccording to Embodiment 1;

FIG. 13 is a block diagram of an attribute information encoder accordingto Embodiment 1;

FIG. 14 is a block diagram of an attribute information decoder accordingto Embodiment 1;

FIG. 15 is a block diagram showing a configuration of the attributeinformation encoder according to the variation of Embodiment 1;

FIG. 16 is a block diagram of the attribute information encoderaccording to Embodiment 1;

FIG. 17 is a block diagram showing a configuration of the attributeinformation decoder according to the variation of Embodiment 1;

FIG. 18 is a block diagram of the attribute information decoderaccording to Embodiment 1;

FIG. 19 is a diagram illustrating a structure of a second encoderaccording to Embodiment 1;

FIG. 20 is a block diagram illustrating the second encoder according toEmbodiment 1;

FIG. 21 is a diagram illustrating a structure of a second decoderaccording to Embodiment 1;

FIG. 22 is a block diagram illustrating the second decoder according toEmbodiment 1;

FIG. 23 is a diagram illustrating a protocol stack related to PCCencoded data according to Embodiment 1;

FIG. 24 is a diagram illustrating structures of an encoder and amultiplexer according to Embodiment 2;

FIG. 25 is a diagram illustrating a structure example of encoded dataaccording to Embodiment 2;

FIG. 26 is a diagram illustrating a structure example of encoded dataand a NAL unit according to Embodiment 2;

FIG. 27 is a diagram illustrating a semantics example ofpcc_nal_unit_type according to Embodiment 2;

FIG. 28 is a diagram illustrating an example of a transmitting order ofNAL units according to Embodiment 2;

FIG. 29 is a flowchart of processing performed by a three-dimensionaldata encoding device according to Embodiment 2;

FIG. 30 is a flowchart of processing performed by a three-dimensionaldata decoding device according to Embodiment 2;

FIG. 31 is a flowchart of multiplexing processing according toEmbodiment 2;

FIG. 32 is a flowchart of demultiplexing processing according toEmbodiment 2;

FIG. 33 is a diagram illustrating an example of three-dimensional pointsaccording to Embodiment 3;

FIG. 34 is a diagram illustrating an example of setting LoDs accordingto Embodiment 3;

FIG. 35 is a diagram illustrating an example of setting LoDs accordingto Embodiment 3;

FIG. 36 is a diagram illustrating an example of attribute information tobe used for predicted values according to Embodiment 3;

FIG. 37 is a diagram illustrating examples of exponential-Golomb codesaccording to Embodiment 3;

FIG. 38 is a diagram indicating a process on exponential-Golomb codesaccording to Embodiment 3;

FIG. 39 is a diagram indicating an example of a syntax in attributeheader according to Embodiment 3;

FIG. 40 is a diagram indicating an example of a syntax in attribute dataaccording to Embodiment 3;

FIG. 41 is a flowchart of a three-dimensional data encoding processaccording to Embodiment 3;

FIG. 42 is a flowchart of an attribute information encoding processaccording to Embodiment 3;

FIG. 43 is a diagram indicating processing on exponential-Golomb codesaccording to Embodiment 3;

FIG. 44 is a diagram indicating an example of a reverse lookup tableindicating relationships between remaining codes and the values thereofaccording to Embodiment 3;

FIG. 45 is a flowchart of a three-dimensional data decoding processaccording to Embodiment 3;

FIG. 46 is a flowchart of an attribute information decoding processaccording to Embodiment 3;

FIG. 47 is a block diagram of a three-dimensional data encoding deviceaccording to Embodiment 3;

FIG. 48 is a block diagram of a three-dimensional data decoding deviceaccording to Embodiment 3;

FIG. 49 is a diagram illustrating an example of a prediction tree usedin a three-dimensional data encoding method according to Embodiment 4;

FIG. 50 is a flowchart illustrating an example of a three-dimensionaldata encoding method according to Embodiment 4;

FIG. 51 is a flowchart illustrating an example of a three-dimensionaldata decoding method according to Embodiment 4;

FIG. 52 is a diagram for describing a method of generating a predictiontree according to Embodiment 4;

FIG. 53 is a diagram for describing a first example of prediction modesaccording to Embodiment 4;

FIG. 54 is a diagram illustrating a second example of a table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 55 is a diagram illustrating a specific example of the secondexample of the table that indicates a predicted value calculated in eachprediction mode according to Embodiment 4;

FIG. 56 is a diagram illustrating a third example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 57 is a diagram illustrating a fourth example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 58 is a diagram illustrating a fifth example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 59 is a diagram illustrating a sixth example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 60 is a diagram illustrating a seventh example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 61 is a diagram illustrating a first example of a binarizationtable in a case where a prediction mode value is binarized and encodedaccording to Embodiment 4;

FIG. 62 is a diagram illustrating a second example of the binarizationtable in the case where a prediction mode value is binarized and encodedaccording to Embodiment 4;

FIG. 63 is a diagram illustrating a third example of the binarizationtable in the case where a prediction mode value is binarized and encodedaccording to Embodiment 4;

FIG. 64 is a diagram for describing an example of encoding of binarydata in a binarization table in the case where a prediction mode valueis binarized and encoded according to Embodiment 4;

FIG. 65 is a flowchart illustrating an example of encoding of aprediction mode value according to Embodiment 4;

FIG. 66 is a flowchart illustrating an example of decoding of aprediction mode value according to Embodiment 4;

FIG. 67 is a diagram illustrating another example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4;

FIG. 68 is a diagram for describing an example of encoding of binarydata in a binarization table in the case where a prediction mode valueis binarized and encoded according to Embodiment 4;

FIG. 69 is a flowchart illustrating another example of encoding of aprediction mode value according to Embodiment 4;

FIG. 70 is a flowchart illustrating another example of decoding of aprediction mode value according to Embodiment 4;

FIG. 71 is a flowchart illustrating an example of a process ofdetermining whether or not to fix the prediction mode value according tocondition A in encoding according to Embodiment 4;

FIG. 72 is a flowchart illustrating an example of a process ofdetermining whether to set the prediction mode value at a fixed value ordecode the prediction mode value according to condition A in decodingaccording to Embodiment 4;

FIG. 73 is a diagram illustrating an example of a syntax of a header ofgeometry information according to Embodiment 4;

FIG. 74 is a diagram illustrating an example of a syntax of geometryinformation according to Embodiment 4;

FIG. 75 is a diagram illustrating another example of the syntax ofgeometry information according to Embodiment 4;

FIG. 76 is a diagram illustrating an example of a prediction tree usedin a three-dimensional data encoding method according to Embodiment 5;

FIG. 77 is a diagram illustrating another example of a syntax ofgeometry information according to Embodiment 5;

FIG. 78 is a block diagram of a three-dimensional data creation deviceaccording to Embodiment 6;

FIG. 79 is a flowchart of a three-dimensional data creation methodaccording to Embodiment 6;

FIG. 80 is a diagram showing a structure of a system according toEmbodiment 6;

FIG. 81 is a block diagram of a client device according to Embodiment 6;

FIG. 82 is a block diagram of a server according to Embodiment 6;

FIG. 83 is a flowchart of a three-dimensional data creation processperformed by the client device according to Embodiment 6;

FIG. 84 is a flowchart of a sensor information transmission processperformed by the client device according to Embodiment 6;

FIG. 85 is a flowchart of a three-dimensional data creation processperformed by the server according to Embodiment 6;

FIG. 86 is a flowchart of a three-dimensional map transmission processperformed by the server according to Embodiment 6;

FIG. 87 is a diagram showing a structure of a variation of the systemaccording to Embodiment 6;

FIG. 88 is a diagram showing a structure of the server and clientdevices according to Embodiment 6;

FIG. 89 is a diagram illustrating a configuration of a server and aclient device according to Embodiment 6;

FIG. 90 is a flowchart of a process performed by the client deviceaccording to Embodiment 6;

FIG. 91 is a diagram illustrating a configuration of a sensorinformation collection system according to Embodiment 6;

FIG. 92 is a diagram illustrating an example of a system according toEmbodiment 6;

FIG. 93 is a diagram illustrating a variation of the system according toEmbodiment 6;

FIG. 94 is a flowchart illustrating an example of an application processaccording to Embodiment 6;

FIG. 95 is a diagram illustrating the sensor range of various sensorsaccording to Embodiment 6;

FIG. 96 is a diagram illustrating a configuration example of anautomated driving system according to Embodiment 6;

FIG. 97 is a diagram illustrating a configuration example of a bitstreamaccording to Embodiment 6;

FIG. 98 is a flowchart of a point cloud selection process according toEmbodiment 6;

FIG. 99 is a diagram illustrating a screen example for point cloudselection process according to Embodiment 6;

FIG. 100 is a diagram illustrating a screen example of the point cloudselection process according to Embodiment 6; and

FIG. 101 is a diagram illustrating a screen example of the point cloudselection process according to Embodiment 6;

FIG. 102 is a diagram for describing the encoding of the attributeinformation by using a RAHT according to Embodiment 7;

FIG. 103 is a diagram illustrating a first example of a LoD according toEmbodiment 8;

FIG. 104 is a diagram illustrating a second example of the LoD accordingto Embodiment 8;

FIG. 105 is a diagram illustrating a third example of the LoD accordingto Embodiment 8;

FIG. 106 is a diagram for describing a first example of a method forencoding attribute information items of three-dimensional pointsaccording to Embodiment 9.

FIG. 107 is a diagram for describing a second example of a method forencoding attribute information items of three-dimensional pointsaccording to Embodiment 9.

FIG. 108 is a diagram for describing search_range according toEmbodiment 9.

FIG. 109 is a diagram illustrating a syntax example of an attributeheader according to Embodiment 9.

FIG. 110 is a flowchart of a three-dimensional data encoding process bya three-dimensional data encoding device according to Embodiment 9.

FIG. 111 is a flowchart of an attribute information item encodingprocess according to Embodiment 9.

FIG. 112 is a flowchart of a process of setting LoDs in an attributeinformation item encoding process according to Embodiment 9.

FIG. 113 is a flowchart of a three-dimensional data decoding process bya three-dimensional data decoding device according to Embodiment 9.

FIG. 114 of a flowchart of an attribute information item decodingprocess according to Embodiment 9.

FIG. 115 is a flowchart of a process of setting LoDs in theattribute-information-item decoding process according to Embodiment 9.

FIG. 116 is a block diagram illustrating a configuration of an attributeinformation encoder included in the three-dimensional data encodingdevice according to Embodiment 9.

FIG. 117 is a block diagram illustrating a configuration of an attributeinformation decoder included in the three-dimensional data decodingdevice according to Embodiment 9.

FIG. 118 is a flowchart of a three-dimensional data encoding processaccording to Embodiment 9.

FIG. 119 is a flowchart of a three-dimensional data decoding processaccording to Embodiment 9.

DETAILED DESCRIPTION OF THE EMBODIMENTS

A three-dimensional data encoding method according to one aspect of thepresent disclosure includes: generating a layered structure includingone or more layers by hierarchically arranging three-dimensional pointseach having an attribute information item; encoding the attributeinformation item of each of the three-dimensional points using thelayered structure; and generating a first bitstream including theattribute information item encoded and an identification informationitem indicating whether the three-dimensional points used in thehierarchical arranging are re-ordered in Morton order before thehierarchical arranging.

As a result, a three-dimensional data decoding device can be notified ofwhether low delay coding or high efficiency coding has been performed.

For example, when the identification information item indicates that thethree-dimensional points are not re-ordered in the Morton order, in thegenerating of the layered structure, the three-dimensional points arenot re-ordered in the Morton order.

For example, when the identification information item indicates that thethree-dimensional points are re-ordered in the Morton order, in thegenerating of the layered structure, the three-dimensional points arere-ordered in the Morton order.

For example, the layered structure may include one layer.

For example, the layered structure may include two or more layers, andthe three-dimensional points may be classified into the two or morelayers in such a way that a distance between three-dimensional pointsbelonging to a higher layer is longer than a distance betweenthree-dimensional points belonging to a lower layer.

For example, the three-dimensional data encoding method may furtherinclude generating a second bitstream when the layered structureincludes two or more layers, the second bitstream including theattribute information item encoded and a layer information item used ingenerating the layered structure including the layers.

For example, the second bitstream need not include the identificationinformation.

A three-dimensional data decoding method according to one aspect of thepresent disclosure includes: obtaining a bitstream including anattribute information item encoded based on three-dimensional pointsarranged hierarchically to form a layered structure including one ormore layers; and decoding the attribute information item encoded, basedon whether the bitstream includes an identification information itemindicating whether the three-dimensional points are re-ordered in Mortonorder.

As a result, the attribute information items of the three-dimensionalpoints can be decoded appropriately.

For example, in the decoding, in a case where the bitstream is a firstbitstream including the identification information item, when theidentification information item indicates that the three-dimensionalpoints are not re-ordered in the Morton order, the layered structure maybe generated by hierarchically arranging the three-dimensional pointswithout re-ordering the three-dimensional points in the Morton order,and the attribute information item encoded may be decoded using thelayered structure.

For example, in the decoding, in a case where the bitstream is a firstbitstream including the identification information item, when theidentification information item indicates that the three-dimensionalpoints are re-ordered in the Morton order, the three-dimensional pointsmay be re-ordered in the Morton order, based on position informationitems of the three-dimensional points, the layered structure may begenerated by hierarchically arranging the three-dimensional pointsre-ordered, and the attribute information item encoded may be decodedusing the layered structure generated.

For example, the first bitstream may indicate that a layered structureincluding one layer is generated.

For example, the layered structure may include two or more layers, andthe three-dimensional points may be classified into the two or morelayers in such a way that a distance between three-dimensional pointsbelonging to a higher layer is longer than a distance betweenthree-dimensional points belonging to a lower layer.

For example, in the decoding, in a case where the layered structureincludes two or more layers, and the bitstream is a second bitstreamincluding a layer information item used in generating a layeredstructure including layers, the layered structure including the layersmay be generated by hierarchically arranging the three-dimensionalpoints using the layer information item, and the attribute informationitem encoded may be decoded using the layered structure generated.

For example, the second bitstream need not include the identificationinformation.

A three-dimensional data encoding device according to one aspect of thepresent disclosure includes a processor and memory. Using the memory,the processor: generates a layered structure including one or morelayers by hierarchically arranging three-dimensional points each havingan attribute information item; encodes the attribute information item ofeach of the three-dimensional points using the layered structure; andgenerates a first bitstream including the attribute information itemencoded and an identification information item indicating whether thethree-dimensional points are re-ordered in Morton order.

As a result, a three-dimensional data decoding device can be notified ofwhether low delay coding or high efficiency coding has been performed.

A three-dimensional data decoding device according to one aspect of thepresent disclosure includes a processor and memory. Using the memory,the processor: obtains a bitstream including an attribute informationitem encoded based on three-dimensional points arranged hierarchicallyto form a layered structure including one or more layers; and decodesthe attribute information item encoded, based on whether the bitstreamincludes an identification information item indicating whether thethree-dimensional points are re-ordered in Morton order.

As a result, the attribute information items of the three-dimensionalpoints can be decoded appropriately.

It is to be noted that these general or specific aspects may beimplemented as a system, a method, an integrated circuit, a computerprogram, or a computer-readable recording medium such as a CD-ROM, ormay be implemented as any combination of a system, a method, anintegrated circuit, a computer program, and a recording medium.

Hereinafter, embodiments will be specifically described with referenceto the drawings. It is to be noted that each of the followingembodiments indicate a specific example of the present disclosure. Thenumerical values, shapes, materials, constituent elements, thearrangement and connection of the constituent elements, steps, theprocessing order of the steps, etc., indicated in the followingembodiments are mere examples, and thus are not intended to limit thepresent disclosure. Among the constituent elements described in thefollowing embodiments, constituent elements not recited in any one ofthe independent claims will be described as optional constituentelements.

Embodiment 1

When using encoded data of a point cloud in a device or for a service inpractice, required information for the application is desirablytransmitted and received in order to reduce the network bandwidth.However, conventional encoding structures for three-dimensional datahave no such a function, and there is also no encoding method for such afunction.

Embodiment 1 described below relates to a three-dimensional dataencoding method and a three-dimensional data encoding device for encodeddata of a three-dimensional point cloud that provides a function oftransmitting and receiving required information for an application, athree-dimensional data decoding method and a three-dimensional datadecoding device for decoding the encoded data, a three-dimensional datamultiplexing method for multiplexing the encoded data, and athree-dimensional data transmission method for transmitting the encodeddata.

In particular, at present, a first encoding method and a second encodingmethod are under investigation as encoding methods (encoding schemes)for point cloud data. However, there is no method defined for storingthe configuration of encoded data and the encoded data in a systemformat. Thus, there is a problem that an encoder cannot perform an MUXprocess (multiplexing), transmission, or accumulation of data.

In addition, there is no method for supporting a format that involvestwo codecs, the first encoding method and the second encoding method,such as point cloud compression (PCC).

With regard to this embodiment, a configuration of PCC-encoded data thatinvolves two codecs, a first encoding method and a second encodingmethod, and a method of storing the encoded data in a system format willbe described.

A configuration of a three-dimensional data (point cloud data) encodingand decoding system according to this embodiment will be firstdescribed. FIG. 1 is a diagram showing an example of a configuration ofthe three-dimensional data encoding and decoding system according tothis embodiment. As shown in FIG. 1, the three-dimensional data encodingand decoding system includes three-dimensional data encoding system4601, three-dimensional data decoding system 4602, sensor terminal 4603,and external connector 4604.

Three-dimensional data encoding system 4601 generates encoded data ormultiplexed data by encoding point cloud data, which isthree-dimensional data. Three-dimensional data encoding system 4601 maybe a three-dimensional data encoding device implemented by a singledevice or a system implemented by a plurality of devices. Thethree-dimensional data encoding device may include a part of a pluralityof processors included in three-dimensional data encoding system 4601.

Three-dimensional data encoding system 4601 includes point cloud datageneration system 4611, presenter 4612, encoder 4613, multiplexer 4614,input/output unit 4615, and controller 4616. Point cloud data generationsystem 4611 includes sensor information obtainer 4617, and point clouddata generator 4618.

Sensor information obtainer 4617 obtains sensor information from sensorterminal 4603, and outputs the sensor information to point cloud datagenerator 4618. Point cloud data generator 4618 generates point clouddata from the sensor information, and outputs the point cloud data toencoder 4613. Presenter 4612 presents the sensor information or pointcloud data to a user. For example, presenter 4612 displays informationor an image based on the sensor information or point cloud data.

Encoder 4613 encodes (compresses) the point cloud data, and outputs theresulting encoded data, control information (signaling information)obtained in the course of the encoding, and other additional informationto multiplexer 4614. The additional information includes the sensorinformation, for example.

Multiplexer 4614 generates multiplexed data by multiplexing the encodeddata, the control information, and the additional information inputthereto from encoder 4613. A format of the multiplexed data is a fileformat for accumulation or a packet format for transmission, forexample.

Input/output unit 4615 (a communication unit or interface, for example)outputs the multiplexed data to the outside. Alternatively, themultiplexed data may be accumulated in an accumulator, such as aninternal memory. Controller 4616 (or an application executor) controlseach processor. That is, controller 4616 controls the encoding, themultiplexing, or other processing.

Note that the sensor information may be input to encoder 4613 ormultiplexer 4614. Alternatively, input/output unit 4615 may output thepoint cloud data or encoded data to the outside as it is.

A transmission signal (multiplexed data) output from three-dimensionaldata encoding system 4601 is input to three-dimensional data decodingsystem 4602 via external connector 4604.

Three-dimensional data decoding system 4602 generates point cloud data,which is three-dimensional data, by decoding the encoded data ormultiplexed data. Note that three-dimensional data decoding system 4602may be a three-dimensional data decoding device implemented by a singledevice or a system implemented by a plurality of devices. Thethree-dimensional data decoding device may include a part of a pluralityof processors included in three-dimensional data decoding system 4602.

Three-dimensional data decoding system 4602 includes sensor informationobtainer 4621, input/output unit 4622, demultiplexer 4623, decoder 4624,presenter 4625, user interface 4626, and controller 4627.

Sensor information obtainer 4621 obtains sensor information from sensorterminal 4603.

Input/output unit 4622 obtains the transmission signal, decodes thetransmission signal into the multiplexed data (file format or packet),and outputs the multiplexed data to demultiplexer 4623.

Demultiplexer 4623 obtains the encoded data, the control information,and the additional information from the multiplexed data, and outputsthe encoded data, the control information, and the additionalinformation to decoder 4624.

Decoder 4624 reconstructs the point cloud data by decoding the encodeddata.

Presenter 4625 presents the point cloud data to a user. For example,presenter 4625 displays information or an image based on the point clouddata. User interface 4626 obtains an indication based on a manipulationby the user. Controller 4627 (or an application executor) controls eachprocessor. That is, controller 4627 controls the demultiplexing, thedecoding, the presentation, or other processing.

Note that input/output unit 4622 may obtain the point cloud data orencoded data as it is from the outside. Presenter 4625 may obtainadditional information, such as sensor information, and presentinformation based on the additional information. Presenter 4625 mayperform a presentation based on an indication from a user obtained onuser interface 4626.

Sensor terminal 4603 generates sensor information, which is informationobtained by a sensor. Sensor terminal 4603 is a terminal provided with asensor or a camera. For example, sensor terminal 4603 is a mobile body,such as an automobile, a flying object, such as an aircraft, a mobileterminal, or a camera.

Sensor information that can be generated by sensor terminal 4603includes (1) the distance between sensor terminal 4603 and an object orthe reflectance of the object obtained by LiDAR, a millimeter waveradar, or an infrared sensor or (2) the distance between a camera and anobject or the reflectance of the object obtained by a plurality ofmonocular camera images or a stereo-camera image, for example. Thesensor information may include the posture, orientation, gyro (angularvelocity), position (GPS information or altitude), velocity, oracceleration of the sensor, for example. The sensor information mayinclude air temperature, air pressure, air humidity, or magnetism, forexample.

External connector 4604 is implemented by an integrated circuit (LSI orIC), an external accumulator, communication with a cloud server via theInternet, or broadcasting, for example.

Next, point cloud data will be described. FIG. 2 is a diagram showing aconfiguration of point cloud data. FIG. 3 is a diagram showing aconfiguration example of a data file describing information of the pointcloud data.

Point cloud data includes data on a plurality of points. Data on eachpoint includes geometry information (three-dimensional coordinates) andattribute information associated with the geometry information. A set ofa plurality of such points is referred to as a point cloud. For example,a point cloud indicates a three-dimensional shape of an object.

Geometry information (position), such as three-dimensional coordinates,may be referred to as geometry. Data on each point may include attributeinformation (attribute) on a plurality of types of attributes. A type ofattribute is color or reflectance, for example.

One item of attribute information (in other words, a piece of attributeinformation or an attribute information item) may be associated with oneitem of geometry information (in other words, a piece of geometryinformation or a geometry information item), or attribute information ona plurality of different types of attributes may be associated with oneitem of geometry information. Alternatively, items of attributeinformation on the same type of attribute may be associated with oneitem of geometry information.

The configuration example of a data file shown in FIG. 3 is an examplein which geometry information and attribute information are associatedwith each other in a one-to-one relationship, and geometry informationand attribute information on N points forming point cloud data areshown.

The geometry information is information on three axes, specifically, anx-axis, a y-axis, and a z-axis, for example. The attribute informationis RGB color information, for example. A representative data file is plyfile, for example.

Next, types of point cloud data will be described. FIG. 4 is a diagramshowing types of point cloud data. As shown in FIG. 4, point cloud dataincludes a static object and a dynamic object.

The static object is three-dimensional point cloud data at an arbitrarytime (a time point). The dynamic object is three-dimensional point clouddata that varies with time. In the following, three-dimensional pointcloud data associated with a time point will be referred to as a PCCframe or a frame.

The object may be a point cloud whose range is limited to some extent,such as ordinary video data, or may be a large point cloud whose rangeis not limited, such as map information.

There are point cloud data having varying densities. There may be sparsepoint cloud data and dense point cloud data.

In the following, each processor will be described in detail. Sensorinformation is obtained by various means, including a distance sensorsuch as LiDAR or a range finder, a stereo camera, or a combination of aplurality of monocular cameras. Point cloud data generator 4618generates point cloud data based on the sensor information obtained bysensor information obtainer 4617. Point cloud data generator 4618generates geometry information as point cloud data, and adds attributeinformation associated with the geometry information to the geometryinformation.

When generating geometry information or adding attribute information,point cloud data generator 4618 may process the point cloud data. Forexample, point cloud data generator 4618 may reduce the data amount byomitting a point cloud whose position coincides with the position ofanother point cloud. Point cloud data generator 4618 may also convertthe geometry information (such as shifting, rotating or normalizing theposition) or render the attribute information.

Note that, although FIG. 1 shows point cloud data generation system 4611as being included in three-dimensional data encoding system 4601, pointcloud data generation system 4611 may be independently provided outsidethree-dimensional data encoding system 4601.

Encoder 4613 generates encoded data by encoding point cloud dataaccording to an encoding method previously defined. In general, thereare the two types of encoding methods described below. One is anencoding method using geometry information, which will be referred to asa first encoding method, hereinafter. The other is an encoding methodusing a video codec, which will be referred to as a second encodingmethod, hereinafter.

Decoder 4624 decodes the encoded data into the point cloud data usingthe encoding method previously defined.

Multiplexer 4614 generates multiplexed data by multiplexing the encodeddata in an existing multiplexing method. The generated multiplexed datais transmitted or accumulated. Multiplexer 4614 multiplexes not only thePCC-encoded data but also another medium, such as a video, an audio,subtitles, an application, or a file, or reference time information.Multiplexer 4614 may further multiplex attribute information associatedwith sensor information or point cloud data.

Multiplexing schemes or file formats include ISOBMFF, MPEG-DASH, whichis a transmission scheme based on ISOBMFF, MMT, MPEG-2 TS Systems, orRMP, for example.

Demultiplexer 4623 extracts PCC-encoded data, other media, timeinformation and the like from the multiplexed data.

Input/output unit 4615 transmits the multiplexed data in a methodsuitable for the transmission medium or accumulation medium, such asbroadcasting or communication. Input/output unit 4615 may communicatewith another device over the Internet or communicate with anaccumulator, such as a cloud server.

As a communication protocol, http, ftp, TCP, UDP or the like is used.The pull communication scheme or the push communication scheme can beused.

A wired transmission or a wireless transmission can be used. For thewired transmission, Ethernet (registered trademark), USB, RS-232C, HDMI(registered trademark), or a coaxial cable is used, for example. For thewireless transmission, wireless LAN, Wi-Fi (registered trademark),Bluetooth (registered trademark), or a millimeter wave is used, forexample.

As a broadcasting scheme, DVB-T2, DVB-S2, DVB-C2, ATSC3.0, or ISDB-S3 isused, for example.

FIG. 5 is a diagram showing a configuration of first encoder 4630, whichis an example of encoder 4613 that performs encoding in the firstencoding method. FIG. 6 is a block diagram showing first encoder 4630.First encoder 4630 generates encoded data (encoded stream) by encodingpoint cloud data in the first encoding method. First encoder 4630includes geometry information encoder 4631, attribute informationencoder 4632, additional information encoder 4633, and multiplexer 4634.

First encoder 4630 is characterized by performing encoding by keeping athree-dimensional structure in mind. First encoder 4630 is furthercharacterized in that attribute information encoder 4632 performsencoding using information obtained from geometry information encoder4631. The first encoding method is referred to also as geometry-basedPCC (GPCC).

Point cloud data is PCC point cloud data like a PLY file or PCC pointcloud data generated from sensor information, and includes geometryinformation (position), attribute information (attribute), and otheradditional information (metadata). The geometry information is input togeometry information encoder 4631, the attribute information is input toattribute information encoder 4632, and the additional information isinput to additional information encoder 4633.

Geometry information encoder 4631 generates encoded geometry information(compressed geometry), which is encoded data, by encoding geometryinformation. For example, geometry information encoder 4631 encodesgeometry information using an N-ary tree structure, such as an octree.Specifically, in the case of an octree, a current space (target space)is divided into eight nodes (subspaces), 8-bit information (occupancycode) that indicates whether each node includes a point cloud or not isgenerated. A node including a point cloud is further divided into eightnodes, and 8-bit information that indicates whether each of the eightnodes includes a point cloud or not is generated. This process isrepeated until a predetermined level is reached or the number of thepoint clouds included in each node becomes equal to or less than athreshold.

Attribute information encoder 4632 generates encoded attributeinformation (compressed attribute), which is encoded data, by encodingattribute information using configuration information generated bygeometry information encoder 4631. For example, attribute informationencoder 4632 determines a reference point (reference node) that is to bereferred to in encoding a current point (in other words, a current nodeor a target node) to be processed based on the octree structuregenerated by geometry information encoder 4631. For example, attributeinformation encoder 4632 refers to a node whose parent node in theoctree is the same as the parent node of the current node, of peripheralnodes or neighboring nodes. Note that the method of determining areference relationship is not limited to this method.

The process of encoding attribute information may include at least oneof a quantization process, a prediction process, and an arithmeticencoding process. In this case, “refer to” means using a reference nodefor calculating a predicted value of attribute information or using astate of a reference node (occupancy information that indicates whethera reference node includes a point cloud or not, for example) fordetermining a parameter of encoding. For example, the parameter ofencoding is a quantization parameter in the quantization process or acontext or the like in the arithmetic encoding.

Additional information encoder 4633 generates encoded additionalinformation (compressed metadata), which is encoded data, by encodingcompressible data of additional information.

Multiplexer 4634 generates encoded stream (compressed stream), which isencoded data, by multiplexing encoded geometry information, encodedattribute information, encoded additional information, and otheradditional information. The generated encoded stream is output to aprocessor in a system layer (not shown).

Next, first decoder 4640, which is an example of decoder 4624 thatperforms decoding in the first encoding method, will be described. FIG.7 is a diagram showing a configuration of first decoder 4640. FIG. 8 isa block diagram showing first decoder 4640. First decoder 4640 generatespoint cloud data by decoding encoded data (encoded stream) encoded inthe first encoding method in the first encoding method. First decoder4640 includes demultiplexer 4641, geometry information decoder 4642,attribute information decoder 4643, and additional information decoder4644.

An encoded stream (compressed stream), which is encoded data, is inputto first decoder 4640 from a processor in a system layer (not shown).

Demultiplexer 4641 separates encoded geometry information (compressedgeometry), encoded attribute information (compressed attribute), encodedadditional information (compressed metadata), and other additionalinformation from the encoded data.

Geometry information decoder 4642 generates geometry information bydecoding the encoded geometry information. For example, geometryinformation decoder 4642 restores the geometry information on a pointcloud represented by three-dimensional coordinates from encoded geometryinformation represented by an N-ary structure, such as an octree.

Attribute information decoder 4643 decodes the encoded attributeinformation based on configuration information generated by geometryinformation decoder 4642. For example, attribute information decoder4643 determines a reference point (reference node) that is to bereferred to in decoding a current point (current node) to be processedbased on the octree structure generated by geometry information decoder4642. For example, attribute information decoder 4643 refers to a nodewhose parent node in the octree is the same as the parent node of thecurrent node, of peripheral nodes or neighboring nodes. Note that themethod of determining a reference relationship is not limited to thismethod.

The process of decoding attribute information may include at least oneof an inverse quantization process, a prediction process, and anarithmetic decoding process. In this case, “refer to” means using areference node for calculating a predicted value of attributeinformation or using a state of a reference node (occupancy informationthat indicates whether a reference node includes a point cloud or not,for example) for determining a parameter of decoding. For example, theparameter of decoding is a quantization parameter in the inversequantization process or a context or the like in the arithmeticdecoding.

Additional information decoder 4644 generates additional information bydecoding the encoded additional information. First decoder 4640 usesadditional information required for the decoding process for thegeometry information and the attribute information in the decoding, andoutputs additional information required for an application to theoutside.

Next, an example configuration of a geometry information encoder will bedescribed. FIG. 9 is a block diagram of geometry information encoder2700 according to this embodiment. Geometry information encoder 2700includes octree generator 2701, geometry information calculator 2702,encoding table selector 2703, and entropy encoder 2704.

Octree generator 2701 generates an octree, for example, from inputposition information, and generates an occupancy code of each node ofthe octree. Geometry information calculator 2702 obtains informationthat indicates whether a neighboring node of a current node (targetnode) is an occupied node or not. For example, geometry informationcalculator 2702 calculates occupancy information on a neighboring nodefrom an occupancy code of a parent node to which a current node belongs(information that indicates whether a neighboring node is an occupiednode or not). Geometry information calculator 2702 may save an encodednode in a list and search the list for a neighboring node. Note thatgeometry information calculator 2702 may change neighboring nodes inaccordance with the position of the current node in the parent node.

Encoding table selector 2703 selects an encoding table used for entropyencoding of the current node based on the occupancy information on theneighboring node calculated by geometry information calculator 2702. Forexample, encoding table selector 2703 may generate a bit sequence basedon the occupancy information on the neighboring node and select anencoding table of an index number generated from the bit sequence.

Entropy encoder 2704 generates encoded geometry information and metadataby entropy-encoding the occupancy code of the current node using theencoding table of the selected index number. Entropy encoder may add, tothe encoded geometry information, information that indicates theselected encoding table.

In the following, an octree representation and a scan order for geometryinformation will be described. Geometry information (geometry data) istransformed into an octree structure (octree transform) and thenencoded. The octree structure includes nodes and leaves. Each node haseight nodes or leaves, and each leaf has voxel (VXL) information. FIG.10 is a diagram showing an example structure of geometry informationincluding a plurality of voxels. FIG. 11 is a diagram showing an examplein which the geometry information shown in FIG. 10 is transformed intoan octree structure. Here, of leaves shown in FIG. 11, leaves 1, 2, and3 represent voxels VXL1, VXL2, and VXL3 shown in FIG. 10, respectively,and each represent VXL containing a point cloud (referred to as a validVXL, hereinafter).

Specifically, node 1 corresponds to the entire space comprising thegeometry information in FIG. 10. The entire space corresponding to node1 is divided into eight nodes, and among the eight nodes, a nodecontaining valid VXL is further divided into eight nodes or leaves. Thisprocess is repeated for every layer of the tree structure. Here, eachnode corresponds to a subspace, and has information (occupancy code)that indicates where the next node or leaf is located after division asnode information. A block in the bottom layer is designated as a leafand retains the number of the points contained in the leaf as leafinformation.

Next, an example configuration of a geometry information decoder will bedescribed. FIG. 12 is a block diagram of geometry information decoder2710 according to this embodiment. Geometry information decoder 2710includes octree generator 2711, geometry information calculator 2712,encoding table selector 2713, and entropy decoder 2714.

Octree generator 2711 generates an octree of a space (node) based onheader information, metadata or the like of a bitstream. For example,octree generator 2711 generates an octree by generating a large space(root node) based on the sizes of a space in an x-axis direction, ay-axis direction, and a z-axis direction added to the header informationand dividing the space into two parts in the x-axis direction, they-axis direction, and the z-axis direction to generate eight smallspaces A (nodes A0 to A7). Nodes A0 to A7 are sequentially designated asa current node.

Geometry information calculator 2712 obtains occupancy information thatindicates whether a neighboring node of a current node is an occupiednode or not. For example, geometry information calculator 2712calculates occupancy information on a neighboring node from an occupancycode of a parent node to which a current node belongs. Geometryinformation calculator 2712 may save a decoded node in a list and searchthe list for a neighboring node. Note that geometry informationcalculator 2712 may change neighboring nodes in accordance with theposition of the current node in the parent node.

Encoding table selector 2713 selects an encoding table (decoding table)used for entropy decoding of the current node based on the occupancyinformation on the neighboring node calculated by geometry informationcalculator 2712. For example, encoding table selector 2713 may generatea bit sequence based on the occupancy information on the neighboringnode and select an encoding table of an index number generated from thebit sequence.

Entropy decoder 2714 generates position information by entropy-decodingthe occupancy code of the current node using the selected encodingtable. Note that entropy decoder 2714 may obtain information on theselected encoding table by decoding the bitstream, and entropy-decodethe occupancy code of the current node using the encoding tableindicated by the information.

In the following, configurations of an attribute information encoder andan attribute information decoder will be described. FIG. 13 is a blockdiagram showing an example configuration of attribute informationencoder A100. The attribute information encoder may include a pluralityof encoders that perform different encoding methods. For example, theattribute information encoder may selectively use any of the two methodsdescribed below in accordance with the use case.

Attribute information encoder A100 includes LoD attribute informationencoder A101 and transformed-attribute-information encoder A102. LoDattribute information encoder A101 classifies three-dimensional pointsinto a plurality of layers based on geometry information on thethree-dimensional points, predicts attribute information onthree-dimensional points belonging to each layer, and encodes aprediction residual therefor. Here, each layer into which athree-dimensional point is classified is referred to as a level ofdetail (LoD).

Transformed-attribute-information encoder A102 encodes attributeinformation using region adaptive hierarchical transform (RAHT).Specifically, transformed-attribute-information encoder A102 generates ahigh frequency component and a low frequency component for each layer byapplying RAHT or Haar transform to each item of attribute informationbased on the geometry information on three-dimensional points, andencodes the values by quantization, entropy encoding or the like.

FIG. 14 is a block diagram showing an example configuration of attributeinformation decoder A110. The attribute information decoder may includea plurality of decoders that perform different decoding methods. Forexample, the attribute information decoder may selectively use any ofthe two methods described below for decoding based on the informationincluded in the header or metadata.

Attribute information decoder A110 includes LoD attribute informationdecoder A111 and transformed-attribute-information decoder A112. LoDattribute information decoder A111 classifies three-dimensional pointsinto a plurality of layers based on the geometry information on thethree-dimensional points, predicts attribute information onthree-dimensional points belonging to each layer, and decodes attributevalues thereof.

Transformed-attribute-information decoder A112 decodes attributeinformation using region adaptive hierarchical transform (RAHT).Specifically, transformed-attribute-information decoder A112 decodeseach attribute value by applying inverse RAHT or inverse Haar transformto the high frequency component and the low frequency component of theattribute value based on the geometry information on thethree-dimensional point.

FIG. 15 is a block diagram showing a configuration of attributeinformation encoder 3140 that is an example of LoD attribute informationencoder A101.

Attribute information encoder 3140 includes LoD generator 3141,periphery searcher 3142, predictor 3143, prediction residual calculator3144, quantizer 3145, arithmetic encoder 3146, inverse quantizer 3147,decoded value generator 3148, and memory 3149.

LoD generator 3141 generates an LoD using geometry information on athree-dimensional point.

Periphery searcher 3142 searches for a neighboring three-dimensionalpoint neighboring each three-dimensional point using a result of LoDgeneration by LoD generator 3141 and distance information indicatingdistances between three-dimensional points.

Predictor 3143 generates a predicted value of an item of attributeinformation on a current (target) three-dimensional point to be encoded.

Prediction residual calculator 3144 calculates (generates) a predictionresidual of the predicted value of the item of the attribute informationgenerated by predictor 3143.

Quantizer 3145 quantizes the prediction residual of the item ofattribute information calculated by prediction residual calculator 3144.

Arithmetic encoder 3146 arithmetically encodes the prediction residualquantized by quantizer 3145. Arithmetic encoder 3146 outputs a bitstreamincluding the arithmetically encoded prediction residual to thethree-dimensional data decoding device, for example.

The prediction residual may be binarized by quantizer 3145 before beingarithmetically encoded by arithmetic encoder 3146.

Arithmetic encoder 3146 may initialize the encoding table used for thearithmetic encoding before performing the arithmetic encoding.Arithmetic encoder 3146 may initialize the encoding table used for thearithmetic encoding for each layer. Arithmetic encoder 3146 may output abitstream including information that indicates the position of the layerat which the encoding table is initialized.

Inverse quantizer 3147 inverse-quantizes the prediction residualquantized by quantizer 3145.

Decoded value generator 3148 generates a decoded value by adding thepredicted value of the item of attribute information generated bypredictor 3143 and the prediction residual inverse-quantized by inversequantizer 3147 together.

Memory 3149 is a memory that stores a decoded value of an item ofattribute information on each three-dimensional point decoded by decodedvalue generator 3148. For example, when generating a predicted value ofa three-dimensional point yet to be encoded, predictor 3143 may generatethe predicted value using a decoded value of an item of attributeinformation on each three-dimensional point stored in memory 3149.

FIG. 16 is a block diagram of attribute information encoder 6600 that isan example of transformation attribute information encoder A102.Attribute information encoder 6600 includes sorter 6601, Haartransformer 6602, quantizer 6603, inverse quantizer 6604, inverse Haartransformer 6605, memory 6606, and arithmetic encoder 6607.

Sorter 6601 generates the Morton codes by using the geometry informationof three-dimensional points, and sorts the plurality ofthree-dimensional points in the order of the Morton codes. Haartransformer 6602 generates the coding coefficient by applying the Haartransform to the attribute information. Quantizer 6603 quantizes thecoding coefficient of the attribute information.

Inverse quantizer 6604 inverse quantizes the coding coefficient afterthe quantization. Inverse Haar transformer 6605 applies the inverse Haartransform to the coding coefficient. Memory 6606 stores the values ofitems of attribute information of a plurality of decodedthree-dimensional points. For example, the attribute information of thedecoded three-dimensional points stored in memory 6606 may be utilizedfor prediction and the like of an unencoded three-dimensional point.

Arithmetic encoder 6607 calculates ZeroCnt from the coding coefficientafter the quantization, and arithmetically encodes ZeroCnt.Additionally, arithmetic encoder 6607 arithmetically encodes thenon-zero coding coefficient after the quantization. Arithmetic encoder6607 may binarize the coding coefficient before the arithmetic encoding.In addition, arithmetic encoder 6607 may generate and encode variouskinds of header information.

FIG. 17 is a block diagram showing a configuration of attributeinformation decoder 3150 that is an example of LoD attribute informationdecoder A111.

Attribute information decoder 3150 includes LoD generator 3151,periphery searcher 3152, predictor 3153, arithmetic decoder 3154,inverse quantizer 3155, decoded value generator 3156, and memory 3157.

LoD generator 3151 generates an LoD using geometry information on athree-dimensional point decoded by the geometry information decoder (notshown in FIG. 17).

Periphery searcher 3152 searches for a neighboring three-dimensionalpoint neighboring each three-dimensional point using a result of LoDgeneration by LoD generator 3151 and distance information indicatingdistances between three-dimensional points.

Predictor 3153 generates a predicted value of attribute information itemon a current three-dimensional point to be decoded.

Arithmetic decoder 3154 arithmetically decodes the prediction residualin the bitstream obtained from attribute information encoder 3140 shownin FIG. 15. Note that arithmetic decoder 3154 may initialize thedecoding table used for the arithmetic decoding. Arithmetic decoder 3154initializes the decoding table used for the arithmetic decoding for thelayer for which the encoding process has been performed by arithmeticencoder 3146 shown in FIG. 15. Arithmetic decoder 3154 may initializethe decoding table used for the arithmetic decoding for each layer.Arithmetic decoder 3154 may initialize the decoding table based on theinformation included in the bitstream that indicates the position of thelayer for which the encoding table has been initialized.

Inverse quantizer 3155 inverse-quantizes the prediction residualarithmetically decoded by arithmetic decoder 3154.

Decoded value generator 3156 generates a decoded value by adding thepredicted value generated by predictor 3153 and the prediction residualinverse-quantized by inverse quantizer 3155 together. Decoded valuegenerator 3156 outputs the decoded attribute information data to anotherdevice.

Memory 3157 is a memory that stores a decoded value of an item ofattribute information on each three-dimensional point decoded by decodedvalue generator 3156. For example, when generating a predicted value ofa three-dimensional point yet to be decoded, predictor 3153 generatesthe predicted value using a decoded value of an item of attributeinformation on each three-dimensional point stored in memory 3157.

FIG. 18 is a block diagram of attribute information decoder 6610 that isan example of transformation attribute information decoder A112.Attribute information decoder 6610 includes arithmetic decoder 6611,inverse quantizer 6612, inverse Haar transformer 6613, and memory 6614.

Arithmetic decoder 6611 arithmetically decodes ZeroCnt and the codingcoefficient included in a bitstream. Note that arithmetic decoder 6611may decode various kinds of header information.

Inverse quantizer 6612 inverse quantizes the arithmetically decodedcoding coefficient. Inverse Haar transformer 6613 applies the inverseHaar transform to the coding coefficient after the inverse quantization.Memory 6614 stores the values of items of attribute information of aplurality of decoded three-dimensional points. For example, theattribute information of the decoded three-dimensional points stored inmemory 6614 may be utilized for prediction of an undecodedthree-dimensional point.

Next, second encoder 4650, which is an example of encoder 4613 thatperforms encoding in the second encoding method, will be described. FIG.19 is a diagram showing a configuration of second encoder 4650. FIG. 20is a block diagram showing second encoder 4650.

Second encoder 4650 generates encoded data (encoded stream) by encodingpoint cloud data in the second encoding method. Second encoder 4650includes additional information generator 4651, geometry image generator4652, attribute image generator 4653, video encoder 4654, additionalinformation encoder 4655, and multiplexer 4656.

Second encoder 4650 is characterized by generating a geometry image andan attribute image by projecting a three-dimensional structure onto atwo-dimensional image, and encoding the generated geometry image andattribute image in an existing video encoding scheme. The secondencoding method is referred to as video-based PCC (VPCC).

Point cloud data is PCC point cloud data like a PLY file or PCC pointcloud data generated from sensor information, and includes geometryinformation (position), attribute information (attribute), and otheradditional information (metadata).

Additional information generator 4651 generates map information on aplurality of two-dimensional images by projecting a three-dimensionalstructure onto a two-dimensional image.

Geometry image generator 4652 generates a geometry image based on thegeometry information and the map information generated by additionalinformation generator 4651. The geometry image is a distance image inwhich distance (depth) is indicated as a pixel value, for example. Thedistance image may be an image of a plurality of point clouds viewedfrom one point of view (an image of a plurality of point cloudsprojected onto one two-dimensional plane), a plurality of images of aplurality of point clouds viewed from a plurality of points of view, ora single image integrating the plurality of images.

Attribute image generator 4653 generates an attribute image based on theattribute information and the map information generated by additionalinformation generator 4651. The attribute image is an image in whichattribute information (color (RGB), for example) is indicated as a pixelvalue, for example. The image may be an image of a plurality of pointclouds viewed from one point of view (an image of a plurality of pointclouds projected onto one two-dimensional plane), a plurality of imagesof a plurality of point clouds viewed from a plurality of points ofview, or a single image integrating the plurality of images.

Video encoder 4654 generates an encoded geometry image (compressedgeometry image) and an encoded attribute image (compressed attributeimage), which are encoded data, by encoding the geometry image and theattribute image in a video encoding scheme. Note that, as the videoencoding scheme, any well-known encoding method can be used. Forexample, the video encoding scheme is AVC or HEVC.

Additional information encoder 4655 generates encoded additionalinformation (compressed metadata) by encoding the additionalinformation, the map information and the like included in the pointcloud data.

Multiplexer 4656 generates an encoded stream (compressed stream), whichis encoded data, by multiplexing the encoded geometry image, the encodedattribute image, the encoded additional information, and otheradditional information. The generated encoded stream is output to aprocessor in a system layer (not shown).

Next, second decoder 4660, which is an example of decoder 4624 thatperforms decoding in the second encoding method, will be described. FIG.21 is a diagram showing a configuration of second decoder 4660. FIG. 22is a block diagram showing second decoder 4660. Second decoder 4660generates point cloud data by decoding encoded data (encoded stream)encoded in the second encoding method in the second encoding method.Second decoder 4660 includes demultiplexer 4661, video decoder 4662,additional information decoder 4663, geometry information generator4664, and attribute information generator 4665.

An encoded stream (compressed stream), which is encoded data, is inputto second decoder 4660 from a processor in a system layer (not shown).

Demultiplexer 4661 separates an encoded geometry image (compressedgeometry image), an encoded attribute image (compressed attributeimage), an encoded additional information (compressed metadata), andother additional information from the encoded data.

Video decoder 4662 generates a geometry image and an attribute image bydecoding the encoded geometry image and the encoded attribute image in avideo encoding scheme. Note that, as the video encoding scheme, anywell-known encoding method can be used. For example, the video encodingscheme is AVC or HEVC.

Additional information decoder 4663 generates additional informationincluding map information or the like by decoding the encoded additionalinformation.

Geometry information generator 4664 generates geometry information fromthe geometry image and the map information. Attribute informationgenerator 4665 generates attribute information from the attribute imageand the map information.

Second decoder 4660 uses additional information required for decoding inthe decoding, and outputs additional information required for anapplication to the outside.

In the following, a problem with the PCC encoding scheme will bedescribed. FIG. 23 is a diagram showing a protocol stack relating toPCC-encoded data. FIG. 23 shows an example in which PCC-encoded data ismultiplexed with other medium data, such as a video (HEVC, for example)or an audio, and transmitted or accumulated.

A multiplexing scheme and a file format have a function of multiplexingvarious encoded data and transmitting or accumulating the data. Totransmit or accumulate encoded data, the encoded data has to beconverted into a format for the multiplexing scheme. For example, withHEVC, a technique for storing encoded data in a data structure referredto as a NAL unit and storing the NAL unit in ISOBMFF is prescribed.

At present, a first encoding method (Codec1) and a second encodingmethod (Codec2) are under investigation as encoding methods for pointcloud data. However, there is no method defined for storing theconfiguration of encoded data and the encoded data in a system format.Thus, there is a problem that an encoder cannot perform an MUX process(multiplexing), transmission, or accumulation of data.

Note that, in the following, the term “encoding method” means any of thefirst encoding method and the second encoding method unless a particularencoding method is specified.

Embodiment 2

In this embodiment, types of the encoded data (geometry information(geometry), attribute information (attribute), and additionalinformation (metadata)) generated by first encoder 4630 or secondencoder 4650 described above, a method of generating additionalinformation (metadata), and a multiplexing process in the multiplexerwill be described. The additional information (metadata) may be referredto as a parameter set or control information (signaling information).

In this embodiment, the dynamic object (three-dimensional point clouddata that varies with time) described above with reference to FIG. 4will be described, for example. However, the same method can also beused for the static object (three-dimensional point cloud dataassociated with an arbitrary time point).

FIG. 24 is a diagram showing configurations of encoder 4801 andmultiplexer 4802 in a three-dimensional data encoding device accordingto this embodiment. Encoder 4801 corresponds to first encoder 4630 orsecond encoder 4650 described above, for example. Multiplexer 4802corresponds to multiplexer 4634 or 4656 described above.

Encoder 4801 encodes a plurality of PCC (point cloud compression) framesof point cloud data to generate a plurality of pieces of encoded data(multiple compressed data) of geometry information, attributeinformation, and additional information.

Multiplexer 4802 integrates a plurality of types of data (geometryinformation, attribute information, and additional information) into aNAL unit, thereby converting the data into a data configuration thattakes data access in the decoding device into consideration.

FIG. 25 is a diagram showing a configuration example of the encoded datagenerated by encoder 4801. Arrows in the drawing indicate a dependenceinvolved in decoding of the encoded data. The source of an arrow dependson data of the destination of the arrow. That is, the decoding devicedecodes the data of the destination of an arrow, and decodes the data ofthe source of the arrow using the decoded data. In other words, “a firstentity depends on a second entity” means that data of the second entityis referred to (used) in processing (encoding, decoding, or the like) ofdata of the first entity.

First, a process of generating encoded data of geometry information willbe described. Encoder 4801 encodes geometry information of each frame togenerate encoded geometry data (compressed geometry data) for eachframe. The encoded geometry data is denoted by G(i). i denotes a framenumber or a time point of a frame, for example.

Furthermore, encoder 4801 generates a geometry parameter set (GPS(i))for each frame. The geometry parameter set includes a parameter that canbe used for decoding of the encoded geometry data. The encoded geometrydata for each frame depends on an associated geometry parameter set.

The encoded geometry data formed by a plurality of frames is defined asa geometry sequence. Encoder 4801 generates a geometry sequenceparameter set (referred to also as geometry sequence PS or geometry SPS)that stores a parameter commonly used for a decoding process for theplurality of frames in the geometry sequence. The geometry sequencedepends on the geometry SPS.

Next, a process of generating encoded data of attribute information willbe described. Encoder 4801 encodes attribute information of each frameto generate encoded attribute data (compressed attribute data) for eachframe. The encoded attribute data is denoted by A(i). FIG. 25 shows anexample in which there are attribute X and attribute Y, and encodedattribute data for attribute X is denoted by AX(i), and encodedattribute data for attribute Y is denoted by AY(i).

Furthermore, encoder 4801 generates an attribute parameter set (APS(i))for each frame. The attribute parameter set for attribute X is denotedby AXPS(i), and the attribute parameter set for attribute Y is denotedby AYPS(i). The attribute parameter set includes a parameter that can beused for decoding of the encoded attribute information. The encodedattribute data depends on an associated attribute parameter set.

The encoded attribute data formed by a plurality of frames is defined asan attribute sequence. Encoder 4801 generates an attribute sequenceparameter set (referred to also as attribute sequence PS or attributeSPS) that stores a parameter commonly used for a decoding process forthe plurality of frames in the attribute sequence. The attributesequence depends on the attribute SPS.

In the first encoding method, the encoded attribute data depends on theencoded geometry data.

FIG. 25 shows an example in which there are two types of attributeinformation (attribute X and attribute Y). When there are two types ofattribute information, for example, two encoders generate data andmetadata for the two types of attribute information. For example, anattribute sequence is defined for each type of attribute information,and an attribute SPS is generated for each type of attributeinformation.

Note that, although FIG. 25 shows an example in which there is one typeof geometry information, and there are two types of attributeinformation, the present disclosure is not limited thereto. There may beone type of attribute information or three or more types of attributeinformation. In such cases, encoded data can be generated in the samemanner. If the point cloud data has no attribute information, there maybe no attribute information. In such a case, encoder 4801 does not haveto generate a parameter set associated with attribute information.

Next, a process of generating encoded data of additional information(metadata) will be described. Encoder 4801 generates a PCC stream PS(referred to also as PCC stream PS or stream PS), which is a parameterset for the entire PCC stream. Encoder 4801 stores a parameter that canbe commonly used for a decoding process for one or more geometrysequences and one or more attribute sequences in the stream PS. Forexample, the stream PS includes identification information indicatingthe codec for the point cloud data and information indicating analgorithm used for the encoding, for example. The geometry sequence andthe attribute sequence depend on the stream PS.

Next, an access unit and a GOF will be described. In this embodiment,concepts of access unit (AU) and group of frames (GOF) are newlyintroduced.

An access unit is a basic unit for accessing data in decoding, and isformed by one or more pieces of data and one or more pieces of metadata.For example, an access unit is formed by geometry information and one ormore pieces of attribute information associated with a same time point.A GOF is a random access unit, and is formed by one or more accessunits.

Encoder 4801 generates an access unit header (AU header) asidentification information indicating the top of an access unit. Encoder4801 stores a parameter relating to the access unit in the access unitheader. For example, the access unit header includes a configuration ofor information on the encoded data included in the access unit. Theaccess unit header further includes a parameter commonly used for thedata included in the access unit, such as a parameter relating todecoding of the encoded data.

Note that encoder 4801 may generate an access unit delimiter thatincludes no parameter relating to the access unit, instead of the accessunit header. The access unit delimiter is used as identificationinformation indicating the top of the access unit. The decoding deviceidentifies the top of the access unit by detecting the access unitheader or the access unit delimiter.

Next, generation of identification information for the top of a GOF willbe described. As identification information indicating the top of a GOF,encoder 4801 generates a GOF header. Encoder 4801 stores a parameterrelating to the GOF in the GOF header. For example, the GOF headerincludes a configuration of or information on the encoded data includedin the GOF. The GOF header further includes a parameter commonly usedfor the data included in the GOF, such as a parameter relating todecoding of the encoded data.

Note that encoder 4801 may generate a GOF delimiter that includes noparameter relating to the GOF, instead of the GOF header. The GOFdelimiter is used as identification information indicating the top ofthe GOF. The decoding device identifies the top of the GOF by detectingthe GOF header or the GOF delimiter.

In the PCC-encoded data, the access unit is defined as a PCC frame unit,for example. The decoding device accesses a PCC frame based on theidentification information for the top of the access unit.

For example, the GOF is defined as one random access unit. The decodingdevice accesses a random access unit based on the identificationinformation for the top of the GOF. For example, if PCC frames areindependent from each other and can be separately decoded, a PCC framecan be defined as a random access unit.

Note that two or more PCC frames may be assigned to one access unit, anda plurality of random access units may be assigned to one GOF.

Encoder 4801 may define and generate a parameter set or metadata otherthan those described above. For example, encoder 4801 may generatesupplemental enhancement information (SEI) that stores a parameter (anoptional parameter) that is not always used for decoding.

Next, a configuration of encoded data and a method of storing encodeddata in a NAL unit will be described.

For example, a data format is defined for each type of encoded data.FIG. 26 is a diagram showing an example of encoded data and a NAL unit.

For example, as shown in FIG. 26, encoded data includes a header and apayload. The encoded data may include length information indicating thelength (data amount) of the encoded data, the header, or the payload.The encoded data may include no header.

The header includes identification information for identifying the data,for example. The identification information indicates a data type or aframe number, for example.

The header includes identification information indicating a referencerelationship, for example. The identification information is stored inthe header when there is a dependence relationship between data, forexample, and allows an entity to refer to another entity. For example,the header of the entity to be referred to includes identificationinformation for identifying the data. The header of the referring entityincludes identification information indicating the entity to be referredto.

Note that, when the entity to be referred to or the referring entity canbe identified or determined from other information, the identificationinformation for identifying the data or identification informationindicating the reference relationship can be omitted.

Multiplexer 4802 stores the encoded data in the payload of the NAL unit.The NAL unit header includes pcc_nal_unit_type, which is identificationinformation for the encoded data. FIG. 27 is a diagram showing asemantics example of pcc_nal_unit_type.

As shown in FIG. 27, when pcc_codec_type is codec 1 (Codec1: firstencoding method), values 0 to 10 of pcc_nal_unit_type are assigned toencoded geometry data (Geometry), encoded attribute X data (AttributeX),encoded attribute Y data (AttributeY), geometry PS (Geom. PS), attributeXPS (AttrX. S), attribute YPS (AttrY. PS), geometry SPS (GeometrySequence PS), attribute X SPS (AttributeX Sequence PS), attribute Y SPS(AttributeY Sequence PS), AU header (AU Header), and GOF header (GOFHeader) in codec 1. Values of 11 and greater are reserved in codec 1.

When pcc_codec_type is codec 2 (Codec2: second encoding method), valuesof 0 to 2 of pcc_nal_unit_type are assigned to data A (DataA), metadataA (MetaDataA), and metadata B (MetaDataB) in the codec. Values of 3 andgreater are reserved in codec 2.

Next, an order of transmission of data will be described. In thefollowing, restrictions on the order of transmission of NAL units willbe described.

Multiplexer 4802 transmits NAL units on a GOF basis or on an AU basis.Multiplexer 4802 arranges the GOF header at the top of a GOF, andarranges the AU header at the top of an AU.

In order to allow the decoding device to decode the next AU and thefollowing AUs even when data is lost because of a packet loss or thelike, multiplexer 4802 may arrange a sequence parameter set (SPS) ineach AU.

When there is a dependence relationship for decoding between encodeddata, the decoding device decodes the data of the entity to be referredto and then decodes the data of the referring entity. In order to allowthe decoding device to perform decoding in the order of receptionwithout rearranging the data, multiplexer 4802 first transmits the dataof the entity to be referred to.

FIG. 28 is a diagram showing examples of the order of transmission ofNAL units. FIG. 28 shows three examples, that is, geometryinformation-first order, parameter-first order, and data-integratedorder.

The geometry information-first order of transmission is an example inwhich information relating to geometry information is transmittedtogether, and information relating to attribute information istransmitted together. In the case of this order of transmission, thetransmission of the information relating to the geometry informationends earlier than the transmission of the information relating to theattribute information.

For example, according to this order of transmission is used, when thedecoding device does not decode attribute information, the decodingdevice may be able to have an idle time since the decoding device canomit decoding of attribute information. When the decoding device isrequired to decode geometry information early, the decoding device maybe able to decode geometry information earlier since the decoding deviceobtains encoded data of the geometry information earlier.

Note that, although in FIG. 28 the attribute X SPS and the attribute YSPS are integrated and shown as the attribute SPS, the attribute X SPSand the attribute Y SPS may be separately arranged.

In the parameter set-first order of transmission, a parameter set isfirst transmitted, and data is then transmitted.

As described above, as far as the restrictions on the order oftransmission of NAL units are met, multiplexer 4802 can transmit NALunits in any order. For example, order identification information may bedefined, and multiplexer 4802 may have a function of transmitting NALunits in a plurality of orders. For example, the order identificationinformation for NAL units is stored in the stream PS.

The three-dimensional data decoding device may perform decoding based onthe order identification information. The three-dimensional datadecoding device may indicate a desired order of transmission to thethree-dimensional data encoding device, and the three-dimensional dataencoding device (multiplexer 4802) may control the order of transmissionaccording to the indicated order of transmission.

Note that multiplexer 4802 can generate encoded data having a pluralityof functions merged to each other as in the case of the data-integratedorder of transmission, as far as the restrictions on the order oftransmission are met. For example, as shown in FIG. 28, the GOF headerand the AU header may be integrated, or AXPS and AYPS may be integrated.In such a case, an identifier that indicates data having a plurality offunctions is defined in pcc_nal_unit_type.

In the following, variations of this embodiment will be described. Thereare levels of PSs, such as a frame-level PS, a sequence-level PS, and aPCC sequence-level PS. Provided that the PCC sequence level is a higherlevel, and the frame level is a lower level, parameters can be stored inthe manner described below.

The value of a default PS is indicated in a PS at a higher level. If thevalue of a PS at a lower level differs from the value of the PS at ahigher level, the value of the PS is indicated in the PS at the lowerlevel. Alternatively, the value of the PS is not described in the PS atthe higher level but is described in the PS at the lower level.Alternatively, information indicating whether the value of the PS isindicated in the PS at the lower level, at the higher level, or at boththe levels is indicated in both or one of the PS at the lower level andthe PS at the higher level. Alternatively, the PS at the lower level maybe merged with the PS at the higher level. If the PS at the lower leveland the PS at the higher level overlap with each other, multiplexer 4802may omit transmission of one of the PSs.

Note that encoder 4801 or multiplexer 4802 may divide data into slicesor tiles and transmit each of the divided slices or tiles as divideddata. The divided data includes information for identifying the divideddata, and a parameter used for decoding of the divided data is includedin the parameter set. In this case, an identifier that indicates thatthe data is data relating to a tile or slice or data storing a parameteris defined in pcc_nal_unit_type.

In the following, a process relating to order identification informationwill be described. FIG. 29 is a flowchart showing a process performed bythe three-dimensional data encoding device (encoder 4801 and multiplexer4802) that involves the order of transmission of NAL units.

First, the three-dimensional data encoding device determines the orderof transmission of NAL units (geometry information-first or parameterset-first) (S4801). For example, the three-dimensional data encodingdevice determines the order of transmission based on a specificationfrom a user or an external device (the three-dimensional data decodingdevice, for example).

If the determined order of transmission is geometry information-first(if “geometry information-first” in S4802), the three-dimensional dataencoding device sets the order identification information included inthe stream PS to geometry information-first (S4803). That is, in thiscase, the order identification information indicates that the NAL unitsare transmitted in the geometry information-first order. Thethree-dimensional data encoding device then transmits the NAL units inthe geometry information-first order (S4804).

On the other hand, if the determined order of transmission is parameterset-first (if “parameter set-first” in S4802), the three-dimensionaldata encoding device sets the order identification information includedin the stream PS to parameter set-first (S4805). That is, in this case,the order identification information indicates that the NAL units aretransmitted in the parameter set-first order. The three-dimensional dataencoding device then transmits the NAL units in the parameter set-firstorder (S4806).

FIG. 30 is a flowchart showing a process performed by thethree-dimensional data decoding device that involves the order oftransmission of NAL units. First, the three-dimensional data decodingdevice analyzes the order identification information included in thestream PS (S4811).

If the order of transmission indicated by the order identificationinformation is geometry information-first if “geometryinformation-first” in S4812), the three-dimensional data decoding devicedecodes the NAL units based on the determination that the order oftransmission of the NAL units is geometry information-first (S4813).

On the other hand, if the order of transmission indicated by the orderidentification information is parameter set-first (if “parameterset-first” in S4812), the three-dimensional data decoding device decodesthe NAL units based on the determination that the order of transmissionof the NAL units is parameter set-first (S4814).

For example, if the three-dimensional data decoding device does notdecode attribute information, in step S4813, the three-dimensional datadecoding device does not obtain the entire NAL units but can obtain apart of a NAL unit relating to the geometry information and decode theobtained NAL unit to obtain the geometry information.

Next, a process relating to generation of an AU and a GOF will bedescribed. FIG. 31 is a flowchart showing a process performed by thethree-dimensional data encoding device (multiplexer 4802) that relatesto generation of an AU and a GOF in multiplexing of NAL units.

First, the three-dimensional data encoding device determines the type ofthe encoded data (S4821). Specifically, the three-dimensional dataencoding device determines whether the encoded data to be processed isAU-first data, GOF-first data, or other data.

If the encoded data is GOF-first data (if “GOF-first” in S4822), thethree-dimensional data encoding device generates NAL units by arranginga GOF header and an AU header at the top of the encoded data belongingto the GOF (S4823).

If the encoded data is AU-first data (if “AU-first” in S4822), thethree-dimensional data encoding device generates NAL units by arrangingan AU header at the top of the encoded data belonging to the AU (S4824).

If the encoded data is neither GOF-first data nor AU-first data (if“other than GOF-first and AU-first” in S4822), the three-dimensionaldata encoding device generates NAL units by arranging the encoded datato follow the AU header of the AU to which the encoded data belongs(S4825).

Next, a process relating to access to an AU and a GOF will be described.FIG. 32 is a flowchart showing a process performed by thethree-dimensional data decoding device that involves accessing to an AUand a GOF in demultiplexing of a NAL unit.

First, the three-dimensional data decoding device determines the type ofthe encoded data included in the NAL unit by analyzing nal_unit_type inthe NAL unit (S4831). Specifically, the three-dimensional data decodingdevice determines whether the encoded data included in the NAL unit isAU-first data, GOF-first data, or other data.

If the encoded data included in the NAL unit is GOF-first data (if“GOF-first” in S4832), the three-dimensional data decoding devicedetermines that the NAL unit is a start position of random access,accesses the NAL unit, and starts the decoding process (S4833).

If the encoded data included in the NAL unit is AU-first data (if“AU-first” in S4832), the three-dimensional data decoding devicedetermines that the NAL unit is AU-first, accesses the data included inthe NAL unit, and decodes the AU (S4834).

If the encoded data included in the NAL unit is neither GOF-first datanor AU-first data if “other than GOF-first and AU-first” in S4832), thethree-dimensional data decoding device does not process the NAL unit.

Embodiment 3

Information of a three-dimensional point cloud includes geometryinformation (geometry) and attribute information (attribute). Geometryinformation includes coordinates (x-coordinate, y-coordinate,z-coordinate) with respect to a certain point. When geometry informationis encoded, a method of representing the position of each ofthree-dimensional points in octree representation and encoding theoctree information to reduce a code amount is used instead of directlyencoding the coordinates of the three-dimensional point.

On the other hand, attribute information includes informationindicating, for example, color information (RGB, YUV, etc.) of eachthree-dimensional point, a reflectance, and a normal vector. Forexample, a three-dimensional data encoding device is capable of encodingattribute information using an encoding method different from a methodused to encode geometry information.

In the present embodiment, a method of encoding attribute information isexplained. It is to be noted that, in the present embodiment, the methodis explained based on an example case using integer values as values ofattribute information. For example, when each of RGB or YUV colorcomponents is of an 8-bit accuracy, the color component is an integervalue in a range from 0 to 255. When a reflectance value is of 10-bitaccuracy, the reflectance value is an integer in a range from 0 to 1023.It is to be noted that, when the bit accuracy of attribute informationis a decimal accuracy, the three-dimensional data encoding device maymultiply the value by a scale value to round it to an integer value sothat the value of the attribute information becomes an integer value. Itis to be noted that the three-dimensional data encoding device may addthe scale value to, for example, a header of a bitstream.

As a method of encoding attribute information of a three-dimensionalpoint, it is conceivable to calculate a predicted value of the attributeinformation of the three-dimensional point and encode a difference(prediction residual) between the original value of the attributeinformation and the predicted value. For example, when the value ofattribute information at three-dimensional point p is Ap and a predictedvalue is Pp, the three-dimensional data encoding device encodesdifferential absolute value Diffp=|Ap−Pp|. In this case, whenhighly-accurate predicted value Pp can be generated, differentialabsolute value Diffp is small. Thus, for example, it is possible toreduce the code amount by entropy encoding differential absolute valueDiffp using a coding table that reduces an occurrence bit count morewhen differential absolute value Diffp is smaller.

As a method of generating a prediction value of attribute information,it is conceivable to use attribute information of a referencethree-dimensional point that is another three-dimensional point whichneighbors a current three-dimensional point to be encoded. Here, areference three-dimensional point is a three-dimensional point in arange of a predetermined distance from the current three-dimensionalpoint. For example, when there are current three-dimensional pointp=(x1, y1, z1) and three-dimensional point q=(x2, y2, z2), thethree-dimensional data encoding device calculates Euclidean distance d(p, q) between three-dimensional point p and three-dimensional point qrepresented by (Equation A1).

[Math. 1]

d(p,q)=√{square root over ((x1−y1)²+(x2−y2)²+(x3−y3)²)}  (Equation A1)

The three-dimensional data encoding device determines that the positionof three-dimensional point q is closer to the position of currentthree-dimensional point p when Euclidean distance d (p, q) is smallerthan predetermined threshold value THd, and determines to use the valueof the attribute information of three-dimensional point q to generate apredicted value of the attribute information of currentthree-dimensional point p. It is to be noted that the method ofcalculating the distance may be another method, and a Mahalanobisdistance or the like may be used. In addition, the three-dimensionaldata encoding device may determine not to use, in prediction processing,any three-dimensional point outside the predetermined range of distancefrom the current three-dimensional point. For example, whenthree-dimensional point r is present, and distance d (p, r) betweencurrent three-dimensional point p and three-dimensional point r islarger than or equal to threshold value THd, the three-dimensional dataencoding device may determine not to use three-dimensional point r forprediction. It is to be noted that the three-dimensional data encodingdevice may add the information indicating threshold value THd to, forexample, a header of a bitstream.

FIG. 33 is a diagram illustrating an example of three-dimensionalpoints. In this example, distance d (p, q) between currentthree-dimensional point p and three-dimensional point q is smaller thanthreshold value THd. Thus, the three-dimensional data encoding devicedetermines that three-dimensional point q is a referencethree-dimensional point of current three-dimensional point p, anddetermines to use the value of attribute information Aq ofthree-dimensional point q to generate predicted value Pp of attributeinformation Ap of current three-dimensional point p.

In contrast, distance d (p, r) between current three-dimensional point pand three-dimensional point r is larger than or equal to threshold valueTHd. Thus, the three-dimensional data encoding device determines thatthree-dimensional point r is not any reference three-dimensional pointof current three-dimensional point p, and determines not to use thevalue of attribute information Ar of three-dimensional point r togenerate predicted value Pp of attribute information Ap of currentthree-dimensional point p.

In addition, when encoding the attribute information of the currentthree-dimensional point using a predicted value, the three-dimensionaldata encoding device uses a three-dimensional point whose attributeinformation has already been encoded and decoded, as a referencethree-dimensional point. Likewise, when decoding the attributeinformation of a current three-dimensional point to be decoded, thethree-dimensional data decoding device uses a three-dimensional pointwhose attribute information has already been decoded, as a referencethree-dimensional point. In this way, it is possible to generate thesame predicted value at the time of encoding and decoding. Thus, abitstream of the three-dimensional point generated by the encoding canbe decoded correctly at the decoding side.

Furthermore, when encoding attribute information of each ofthree-dimensional points, it is conceivable to classify thethree-dimensional point into one of a plurality of layers using geometryinformation of the three-dimensional point and then encode the attributeinformation. Here, each of the layers classified is referred to as aLevel of Detail (LoD). A method of generating LoDs is explained withreference to FIG. 34.

First, the three-dimensional data encoding device selects initial pointa0 and assigns initial point a0 to LoD0. Next, the three-dimensionaldata encoding device extracts point a1 distant from point a0 more thanthreshold value Thres_LoD[0] of LoD0 and assigns point a1 to LoD0. Next,the three-dimensional data encoding device extracts point a2 distantfrom point a1 more than threshold value Thres_LoD[0] of LoD0 and assignspoint a2 to LoD0. In this way, the three-dimensional data encodingdevice configures LoD0 in such a manner that the distance between thepoints in LoD0 is larger than threshold value Thres_LoD[0].

Next, the three-dimensional data encoding device selects point b0 whichhas not yet been assigned to any LoD and assigns point b0 to LoD1. Next,the three-dimensional data encoding device extracts point b1 which isdistant from point b0 more than threshold value Thres_LoD[1] of LoD1 andwhich has not yet been assigned to any LoD, and assigns point b1 toLoD1. Next, the three-dimensional data encoding device extracts point b2which is distant from point b1 more than threshold value Thres_LoD[1] ofLoD1 and which has not yet been assigned to any LoD, and assigns pointb2 to LoD1. In this way, the three-dimensional data encoding deviceconfigures LoD1 in such a manner that the distance between the points inLoD1 is larger than threshold value Thres_LoD[1].

Next, the three-dimensional data encoding device selects point c0 whichhas not yet been assigned to any LoD and assigns point c0 to LoD2. Next,the three-dimensional data encoding device extracts point c1 which isdistant from point c0 more than threshold value Thres_LoD[2] of LoD2 andwhich has not yet been assigned to any LoD, and assigns point c1 toLoD2. Next, the three-dimensional data encoding device extracts point c2which is distant from point c1 more than threshold value Thres_LoD[2] ofLoD2 and which has not yet been assigned to any LoD, and assigns pointc2 to LoD2. In this way, the three-dimensional data encoding deviceconfigures LoD2 in such a manner that the distance between the points inLoD2 is larger than threshold value Thres_LoD[2]. For example, asillustrated in FIG. 35, threshold values Thres_LoD[0], Thres_LoD[1], andThres_LoD[2] of respective LoDs are set.

In addition, the three-dimensional data encoding device may add theinformation indicating the threshold value of each LoD to, for example,a header of a bitstream. For example, in the case of the exampleillustrated in FIG. 35, the three-dimensional data encoding device mayadd threshold values Thres_LoD[0], Thres_LoD[1], and Thres_LoD[2] ofrespective LoDs to a header.

Alternatively, the three-dimensional data encoding device may assign allthree-dimensional points which have not yet been assigned to any LoD inthe lowermost-layer LoD. In this case, the three-dimensional dataencoding device is capable of reducing the code amount of the header bynot assigning the threshold value of the lowermost-layer LoD to theheader. For example, in the case of the example illustrated in FIG. 35,the three-dimensional data encoding device assigns threshold valuesThres_LoD[0] and Thres_LoD[1] to the header, and does not assignThres_LoD[2] to the header. In this case, the three-dimensional dataencoding device may estimate value 0 of Thres_LoD[2]. In addition, thethree-dimensional data encoding device may add the number of LoDs to aheader. In this way, the three-dimensional data encoding device iscapable of determining the lowermost-layer LoD using the number of LoDs.

In addition, setting threshold values for the respective layers LoDs insuch a manner that a larger threshold value is set to a higher layermakes a higher layer (layer closer to LoD0) to have a sparse point cloud(sparse) in which three-dimensional points are more distant and makes alower layer to have a dense point cloud (dense) in whichthree-dimensional points are closer. It is to be noted that, in anexample illustrated in FIG. 35, LoD0 is the uppermost layer.

In addition, the method of selecting an initial three-dimensional pointat the time of setting each LoD may depend on an encoding order at thetime of geometry information encoding. For example, thethree-dimensional data encoding device configures LoD0 by selecting thethree-dimensional point encoded first at the time of the geometryinformation encoding as initial point a0 of LoD0, and selecting point a1and point a2 from initial point a0 as the origin. The three-dimensionaldata encoding device then may select the three-dimensional point whosegeometry information has been encoded at the earliest time amongthree-dimensional points which do not belong to LoD0, as initial pointb0 of LoD1. In other words, the three-dimensional data encoding devicemay select the three-dimensional point whose geometry information hasbeen encoded at the earliest time among three-dimensional points whichdo not belong to layers (LoD0 to LoDn−1) above LoDn, as initial point n0of LoDn. In this way, the three-dimensional data encoding device iscapable of configuring the same LoD as in encoding by using, indecoding, the initial point selecting method similar to the one used inthe encoding, which enables appropriate decoding of a bitstream. Morespecifically, the three-dimensional data encoding device selects thethree-dimensional point whose geometry information has been decoded atthe earliest time among three-dimensional points which do not belong tolayers above LoDn, as initial point n0 of LoDn.

Hereinafter, a description is given of a method of generating thepredicted value of the attribute information of each three-dimensionalpoint using information of LoDs. For example, when encodingthree-dimensional points starting with the three-dimensional pointsincluded in LoD0, the three-dimensional data encoding device generatescurrent three-dimensional points which are included in LoD1 usingencoded and decoded (hereinafter also simply referred to as “encoded”)attribute information included in LoD0 and LoD1. In this way, thethree-dimensional data encoding device generates a predicted value ofattribute information of each three-dimensional point included in LoDnusing encoded attribute information included in LoDn′ (n′≤n). In otherwords, the three-dimensional data encoding device does not use attributeinformation of each of three-dimensional points included in any layerbelow LoDn to calculate a predicted value of attribute information ofeach of the three-dimensional points included in LoDn.

For example, the three-dimensional data encoding device calculates anaverage of attribute information of N or less three-dimensional pointsamong encoded three-dimensional points surrounding a currentthree-dimensional point to be encoded, to generate a predicted value ofattribute information of the current three-dimensional point. Inaddition, the three-dimensional data encoding device may add value N to,for example, a header of a bitstream. It is to be noted that thethree-dimensional data encoding device may change value N for eachthree-dimensional point, and may add value N for each three-dimensionalpoint. This enables selection of appropriate N for eachthree-dimensional point, which makes it possible to increase theaccuracy of the predicted value. Accordingly, it is possible to reducethe prediction residual. Alternatively, the three-dimensional dataencoding device may add value N to a header of a bitstream, and may fixthe value indicating N in the bitstream. This eliminates the need toencode or decode value N for each three-dimensional point, which makesit possible to reduce the processing amount. In addition, thethree-dimensional data encoding device may encode the values of Nseparately for each LoD. In this way, it is possible to increase thecoding efficiency by selecting appropriate N for each LoD.

Alternatively, the three-dimensional data encoding device may calculatea predicted value of attribute information of three-dimensional pointbased on weighted average values of attribute information of encoded Nneighbor three-dimensional points. For example, the three-dimensionaldata encoding device calculates weights using distance informationbetween a current three-dimensional point and each of N neighborthree-dimensional points.

When encoding value N for each LoD, for example, the three-dimensionaldata encoding device sets larger value N to a higher layer LoD, and setssmaller value N to a lower layer LoD. The distance betweenthree-dimensional points belonging to a higher layer LoD is large, thereis a possibility that it is possible to increase the prediction accuracyby setting large value N, selecting a plurality of neighborthree-dimensional points, and averaging the values. Furthermore, thedistance between three-dimensional points belonging to a lower layer LoDis small, it is possible to perform efficient prediction while reducingthe processing amount of averaging by setting smaller value N.

FIG. 36 is a diagram illustrating an example of attribute information tobe used for predicted values. As described above, the predicted value ofpoint P included in LoDN is generated using encoded neighbor point P′included in LoDN′ (N′≤N). Here, neighbor point P′ is selected based onthe distance from point P. For example, the predicted value of attributeinformation of point b2 illustrated in FIG. 36 is generated usingattribute information of each of points a0, a1, b0, and b1.

Neighbor points to be selected vary depending on the values of Ndescribed above. For example, in the case of N=5, a0, a1, a2, b0, and b1are selected as neighbor points. In the case of N=4, a0, a1, a2, and b1are selected based on distance information.

The predicted value is calculated by distance-dependent weightedaveraging. For example, in the example illustrated in FIG. 36, predictedvalue a2 p of point a2 is calculated by weighted averaging of attributeinformation of each of point a0 and a1, as represented by (Equation A2)and (Equation A3). It is to be noted that A_(i) is an attributeinformation value of ai.

$\begin{matrix}{\left\lbrack {{Math}.2} \right\rbrack{{a2p} = {\sum\limits_{i = 0}^{1}{w_{i} \times A_{i}}}}} & \left( {{Equation}{A2}} \right)\end{matrix}$ $\begin{matrix}{w_{i} = \frac{\frac{1}{d\left( {{a2},{ai}} \right)}}{\sum_{j = 0}^{1}\frac{1}{\left( {{a2},{ai}} \right)}}} & \left( {{Equation}{A3}} \right)\end{matrix}$

In addition, predicted value b2 p of point b2 is calculated by weightedaveraging of attribute information of each of point a0, a1, a2, b0, andb1, as represented by (Equation A4) and (Equation A6). It is to be notedthat B_(i) is an attribute information value of bi.

$\begin{matrix}{\left\lbrack {{Math}.3} \right\rbrack{{b2p} = {{\sum_{i = 0}^{2}{{wa}_{i} \times A_{i}}} + {\sum_{i = 0}^{1}{{wb}_{i} \times B_{i}}}}}} & \left( {{Equation}{A4}} \right)\end{matrix}$ $\begin{matrix}{{wa}_{i} = \frac{\frac{1}{d\left( {{b2},{ai}} \right)}}{{\sum_{j = 0}^{2}\frac{1}{d\left( {{b2},{aj}} \right)}} + {\sum_{j = 0}^{1}\frac{1}{d\left( {{b2},{bj}} \right)}}}} & \left( {{Equation}{A5}} \right)\end{matrix}$ $\begin{matrix}{{wb}_{i} = \frac{\frac{1}{d\left( {{b2},{bi}} \right)}}{{\sum_{j = 0}^{2}\frac{1}{d\left( {{b2},{aj}} \right)}} + {\sum_{j = 0}^{1}\frac{1}{d\left( {{b2},{bj}} \right)}}}} & \left( {{Equation}{A6}} \right)\end{matrix}$

In addition, the three-dimensional data encoding device may calculate adifference value (prediction residual) generated from the value ofattribute information of a three-dimensional point and neighbor points,and may quantize the calculated prediction residual. For example, thethree-dimensional data encoding device performs quantization by dividingthe prediction residual by a quantization scale (also referred to as aquantization step). In this case, an error (quantization error) whichmay be generated by quantization reduces as the quantization scale issmaller. In the other case where the quantization scale is larger, theresulting quantization error is larger.

It is to be noted that the three-dimensional data encoding device maychange the quantization scale to be used for each LoD. For example, thethree-dimensional data encoding device reduces the quantization scalemore for a higher layer, and increases the quantization scale more for alower layer. The value of attribute information of a three-dimensionalpoint belonging to a higher layer may be used as a predicted value ofattribute information of a three-dimensional point belonging to a lowerlayer. Thus, it is possible to increase the coding efficiency byreducing the quantization scale for the higher layer to reduce thequantization error that can be generated in the higher layer and toincrease the prediction accuracy of the predicted value. It is to benoted that the three-dimensional data encoding device may add thequantization scale to be used for each LoD to, for example, a header. Inthis way, the three-dimensional data encoding device can decode thequantization scale correctly, thereby appropriately decoding thebitstream.

In addition, the three-dimensional data encoding device may convert asigned integer value (signed quantized value) which is a quantizedprediction residual into an unsigned integer value (unsigned quantizedvalue). This eliminates the need to consider occurrence of a negativeinteger when entropy encoding the prediction residual. It is to be notedthat the three-dimensional data encoding device does not always need toconvert a signed integer value into an unsigned integer value, and, forexample, that the three-dimensional data encoding device may entropyencode a sign bit separately.

The prediction residual is calculated by subtracting a prediction valuefrom the original value. For example, as represented by (Equation A7),prediction residual a2 r of point a2 is calculated by subtractingpredicted value a2 p of point a2 from value A₂ of attribute informationof point a2. As represented by (Equation A8), prediction residual b2 rof point b2 is calculated by subtracting predicted value b2 p of pointb2 from value B₂ of attribute information of point b2.

a2r=A ₂ −a2p  (Equation A7)

b2r=B ₂ −b2p  (Equation A8)

In addition, the prediction residual is quantized by being divided by aQuantization Step (QS). For example, quantized value a2 q of point a2 iscalculated according to (Equation A9). Quantized value b2 q of point b2is calculated according to (Equation A10). Here, QS_LoD0 is a QS forLoD0, and QS_LoD1 is a QS for LoD1. In other words, a QS may be changedaccording to an LoD.

a2q=a2r/QS_LoD0  (Equation A9)

b2q=b2r/QS_LoD1  (Equation A10)

In addition, the three-dimensional data encoding device converts signedinteger values which are quantized values as indicated below intounsigned integer values as indicated below. When signed integer value a2q is smaller than 0, the three-dimensional data encoding device setsunsigned integer value a2 u to −1−(2×a2 q). When signed integer value a2q is 0 or more, the three-dimensional data encoding device sets unsignedinteger value a2 u to 2×a2 q.

Likewise, when signed integer value b2 q is smaller than 0, thethree-dimensional data encoding device sets unsigned integer value b2 uto −1−(2×b2 q). When signed integer value b2 q is 0 or more, thethree-dimensional data encoding device sets unsigned integer value b2 uto 2×b2 q.

In addition, the three-dimensional data encoding device may encode thequantized prediction residual (unsigned integer value) by entropyencoding. For example, the three-dimensional data encoding device maybinarize the unsigned integer value and then apply binary arithmeticencoding to the binary value.

It is to be noted that, in this case, the three-dimensional dataencoding device may switch binarization methods according to the valueof a prediction residual. For example, when prediction residual pu issmaller than threshold value R_TH, the three-dimensional data encodingdevice binarizes prediction residual pu using a fixed bit count requiredfor representing threshold value R_TH. In addition, when predictionresidual pu is larger than or equal to threshold value R_TH, thethree-dimensional data encoding device binarizes the binary data ofthreshold value R_TH and the value of (pu−R_TH), usingexponential-Golomb coding, or the like.

For example, when threshold value R_TH is 63 and prediction residual puis smaller than 63, the three-dimensional data encoding device binarizesprediction residual pu using 6 bits. When prediction residual pu islarger than or equal to 63, the three-dimensional data encoding deviceperforms arithmetic encoding by binarizing the binary data (111111) ofthreshold value R_TH and (pu−63) using exponential-Golomb coding.

In a more specific example, when prediction residual pu is 32, thethree-dimensional data encoding device generates 6-bit binary data(100000), and arithmetic encodes the bit sequence. In addition, whenprediction residual pu is 66, the three-dimensional data encoding devicegenerates binary data (111111) of threshold value R_TH and a bitsequence (00100) representing value 3 (66-63) using exponential-Golombcoding, and arithmetic encodes the bit sequence (111111+00100).

In this way, the three-dimensional data encoding device can performencoding while preventing a binary bit count from increasing abruptly inthe case where a prediction residual becomes large by switchingbinarization methods according to the magnitude of the predictionresidual. It is to be noted that the three-dimensional data encodingdevice may add threshold value R_TH to, for example, a header of abitstream.

For example, in the case where encoding is performed at a high bit rate,that is, when a quantization scale is small, a small quantization errorand a high prediction accuracy are obtained. As a result, a predictionresidual may not be large. Thus, in this case, the three-dimensionaldata encoding device sets large threshold value R_TH. This reduces thepossibility that the binary data of threshold value R_TH is encoded,which increases the coding efficiency. In the opposite case whereencoding is performed at a low bit rate, that is, when a quantizationscale is large, a large quantization error and a low prediction accuracyare obtained. As a result, a prediction residual may be large. Thus, inthis case, the three-dimensional data encoding device sets smallthreshold value R_TH. In this way, it is possible to prevent abruptincrease in bit length of binary data.

In addition, the three-dimensional data encoding device may switchthreshold value R_TH for each LoD, and may add threshold value R_TH foreach LoD to, for example, a header. In other words, thethree-dimensional data encoding device may switch binarization methodsfor each LoD. For example, since distances between three-dimensionalpoints are large in a higher layer, a prediction accuracy is low, whichmay increase a prediction residual. Thus, the three-dimensional dataencoding device prevents abrupt increase in bit length of binary data bysetting small threshold value R_TH to the higher layer. In addition,since distances between three-dimensional points are small in a lowerlayer, a prediction accuracy is high, which may reduce a predictionresidual. Thus, the three-dimensional data encoding device increases thecoding efficiency by setting large threshold value R_TH to the lowerlayer.

FIG. 37 is a diagram indicating examples of exponential-Golomb codes.The diagram indicates the relationships between pre-binarization values(non-binary values) and post-binarization bits (codes). It is to benoted that 0 and 1 indicated in FIG. 37 may be inverted.

The three-dimensional data encoding device applies arithmetic encodingto the binary data of prediction residuals. In this way, the codingefficiency can be increased. It is to be noted that, in the applicationof the arithmetic encoding, there is a possibility that occurrenceprobability tendencies of 0 and 1 in each bit vary, in binary data,between an n-bit code which is a part binarized by n bits and aremaining code which is a part binarized using exponential-Golombcoding. Thus, the three-dimensional data encoding device may switchmethods of applying arithmetic encoding between the n-bit code and theremaining code.

For example, the three-dimensional data encoding device performsarithmetic encoding on the n-bit code using one or more coding tables(probability tables) different for each bit. At this time, thethree-dimensional data encoding device may change the number of codingtables to be used for each bit. For example, the three-dimensional dataencoding device performs arithmetic encoding using one coding table forfirst bit b0 in an n-bit code. The three-dimensional data encodingdevice uses two coding tables for the next bit M. The three-dimensionaldata encoding device switches coding tables to be used for arithmeticencoding of bit b1 according to the value (0 or 1) of b0. Likewise, thethree-dimensional data encoding device uses four coding tables for thenext bit b2. The three-dimensional data encoding device switches codingtables to be used for arithmetic encoding of bit b2 according to thevalues (in a range from 0 to 3) of b0 and b1.

In this way, the three-dimensional data encoding device uses 2^(n-1)coding tables when arithmetic encoding each bit bn−1 in n-bit code. Thethree-dimensional data encoding device switches coding tables to be usedaccording to the values (occurrence patterns) of bits before bn−1. Inthis way, the three-dimensional data encoding device can use codingtables appropriate for each bit, and thus can increase the codingefficiency.

It is to be noted that the three-dimensional data encoding device mayreduce the number of coding tables to be used for each bit. For example,the three-dimensional data encoding device may switch 2^(m) codingtables according to the values (occurrence patterns) of m bits (m<n−1)before bn−1 when arithmetic encoding each bit bn−1. In this way, it ispossible to increase the coding efficiency while reducing the number ofcoding tables to be used for each bit. It is to be noted that thethree-dimensional data encoding device may update the occurrenceprobabilities of 0 and 1 in each coding table according to the values ofbinary data occurred actually. In addition, the three-dimensional dataencoding device may fix the occurrence probabilities of 0 and 1 incoding tables for some bit(s). In this way, it is possible to reduce thenumber of updates of occurrence probabilities, and thus to reduce theprocessing amount.

For example, when an n-bit code is b0, b1, b2, . . . , bn−1, the codingtable for b0 is one table (CTb0). Coding tables for b1 are two tables(CTb10 and CTb11). Coding tables to be used are switched according tothe value (0 or 1) of b0. Coding tables for b2 are four tables (CTb20,CTb21, CTb22, and CTb23). Coding tables to be used are switchedaccording to the values (in the range from 0 to 3) of b0 and b1. Codingtables for bn−1 are 2^(n-1) tables (CTbn0, CTbn1, . . . , CTbn(2^(n-1)−1)). Coding tables to be used are switched according to thevalues (in a range from 0 to 2n⁻¹−1) of b0, b1, . . . , bn−2.

It is to be noted that the three-dimensional data encoding device mayapply, to an n-bit code, arithmetic encoding (m=2^(n)) by m-ary thatsets the value in the range from 0 to 2^(n)−1 without binarization. Whenthe three-dimensional data encoding device arithmetic encodes an n-bitcode by an m-ary, the three-dimensional data decoding device mayreconstruct the n-bit code by arithmetic decoding the m-ary.

FIG. 38 is a diagram for illustrating processing in the case whereremaining codes are exponential-Golomb codes. As indicated in FIG. 38,each remaining code which is a part binarized using exponential-Golombcoding includes a prefix and a suffix. For example, thethree-dimensional data encoding device switches coding tables betweenthe prefix and the suffix. In other words, the three-dimensional dataencoding device arithmetic encodes each of bits included in the prefixusing coding tables for the prefix, and arithmetic encodes each of bitsincluded in the suffix using coding tables for the suffix.

It is to be noted that the three-dimensional data encoding device mayupdate the occurrence probabilities of 0 and 1 in each coding tableaccording to the values of binary data occurred actually. In addition,the three-dimensional data encoding device may fix the occurrenceprobabilities of 0 and 1 in one of coding tables. In this way, it ispossible to reduce the number of updates of occurrence probabilities,and thus to reduce the processing amount. For example, thethree-dimensional data encoding device may update the occurrenceprobabilities for the prefix, and may fix the occurrence probabilitiesfor the suffix.

In addition, the three-dimensional data encoding device decodes aquantized prediction residual by inverse quantization andreconstruction, and uses a decoded value which is the decoded predictionresidual for prediction of a current three-dimensional point to beencoded and the following three-dimensional point(s). More specifically,the three-dimensional data encoding device calculates an inversequantized value by multiplying the quantized prediction residual(quantized value) with a quantization scale, and adds the inversequantized value and a prediction value to obtain the decoded value(reconstructed value).

For example, quantized value a2 iq of point a2 is calculated usingquantized value a2 q of point a2 according to (Equation A11). Inversequantized value b2 iq of point b2 q is calculated using quantized valueb2 q of point b2 according to (Equation A12). Here, QS_LoD0 is a QS forLoD0, and QS_LoD1 is a QS for LoD1. In other words, a QS may be changedaccording to an LoD.

a2iq=a2q×QS_LoD0  (Equation A11)

b2iq=b2q×QS_LoD1  (Equation A12)

For example, as represented by (Equation A13), decoded value a2 rec ofpoint a2 is calculated by adding inverse quantization value a2 iq ofpoint a2 to predicted value a2 p of point a2. As represented by(Equation A14), decoded value b2 rec of point b2 is calculated by addinginverse quantized value b2 iq of point b2 to predicted value b2 p ofpoint b2.

a2rec=a2iq+a2p  (Equation A13)

b2rec=b2iq+b2p  (Equation A14)

Hereinafter, a syntax example of a bitstream according to the presentembodiment is described. FIG. 39 is a diagram indicating the syntaxexample of an attribute header (attribute_header) according to thepresent embodiment. The attribute header is header information ofattribute information. As indicated in FIG. 39, the attribute headerincludes the number of layers information (NumLoD), the number ofthree-dimensional points information (NumOfPoint[i]), a layer thresholdvalue (Thres_LoD[i]), the number of neighbor points information(NumNeighborPoint[i]), a prediction threshold value (THd[i]), aquantization scale (QS[i]), and a binarization threshold value(R_TH[i]).

The number of layers information (NumLoD) indicates the number of LoDsto be used.

The number of three-dimensional points information (NumOfPoint[i])indicates the number of three-dimensional points belonging to layer i.It is to be noted that the three-dimensional data encoding device mayadd, to another header, the number of three-dimensional pointsinformation indicating the total number of three-dimensional points. Inthis case, the three-dimensional data encoding device does not need toadd, to a header, NumOfPoint [NumLoD−1] indicating the number ofthree-dimensional points belonging to the lowermost layer. In this case,the three-dimensional data decoding device is capable of calculatingNumOfPoint [NumLoD−1] according to (Equation A15). In this case, it ispossible to reduce the code amount of the header.

[Math.4] $\begin{matrix}{{{NumOfPoint}\left\lbrack {{NumLoD} - 1} \right\rbrack} = {{AllNumOfPoint} - {\sum\limits_{j = 0}^{{NumLoD} - 2}{{NumOfPoint}\lbrack f\rbrack}}}} & \left( {{Equation}{A15}} \right)\end{matrix}$

The layer threshold value (Thres_LoD[i]) is a threshold value to be usedto set layer i. The three-dimensional data encoding device and thethree-dimensional data decoding device configure LoDi in such a mannerthat the distance between points in LoDi becomes larger than thresholdvalue Thres_LoD[i]. The three-dimensional data encoding device does notneed to add the value of Thres_LoD [NumLoD−1] (lowermost layer) to aheader. In this case, the three-dimensional data decoding device mayestimate 0 as the value of Thres_LoD [NumLoD−1]. In this case, it ispossible to reduce the code amount of the header.

The number of neighbor points information (NumNeighborPoint[i])indicates the upper limit value of the number of neighbor points to beused to generate a predicted value of a three-dimensional pointbelonging to layer i. The three-dimensional data encoding device maycalculate a predicted value using the number of neighbor points M whenthe number of neighbor points M is smaller than NumNeighborPoint[i](M<NumNeighborPoint[i]).

Furthermore, when there is no need to differentiate the values ofNumNeighborPoint[i] for respective LoDs, the three-dimensional dataencoding device may add a piece of the number of neighbor pointsinformation (NumNeighborPoint) to be used in all LoDs to a header.

The prediction threshold value (THd[i]) indicates the upper limit valueof the distance between a current three-dimensional point to be encodedor decoded in layer i and each of neighbor three-dimensional points tobe used to predict the current three-dimensional point. Thethree-dimensional data encoding device and the three-dimensional datadecoding device do not use, for prediction, any three-dimensional pointdistant from the current three-dimensional point over THd[i]. It is tobe noted that, when there is no need to differentiate the values ofTHd[i] for respective LoDs, the three-dimensional data encoding devicemay add a single prediction threshold value (THd) to be used in all LoDsto a header.

The quantization scale (QS[i]) indicates a quantization scale to be usedfor quantization and inverse quantization in layer i.

The binarization threshold value (R_TH[i]) is a threshold value forswitching binarization methods of prediction residuals ofthree-dimensional points belonging to layer i. For example, thethree-dimensional data encoding device binarizes prediction residual puusing a fixed bit count when a prediction residual is smaller thanthreshold value R_TH, and binarizes the binary data of threshold valueR_TH and the value of (pu−R_TH) using exponential-Golomb coding when aprediction residual is larger than or equal to threshold value R_TH. Itis to be noted that, when there is no need to switch the values ofR_TH[i] between LoDs, the three-dimensional data encoding device may adda single binarization threshold value (R_TH) to be used in all LoDs to aheader.

It is to be noted that R_TH[i] may be the maximum value which can berepresented by n bits. For example, R_TH is 63 in the case of 6 bits,and R_TH is 255 in the case of 8 bits. Alternatively, thethree-dimensional data encoding device may encode a bit count instead ofencoding the maximum value which can be represented by n bits as abinarization threshold value. For example, the three-dimensional dataencoding device may add value 6 in the case of R_TH[i]=63 to a header,and may add value 8 in the case of R_TH[i]=255 to a header.Alternatively, the three-dimensional data encoding device may define theminimum value (minimum bit count) representing R_TH[i], and add arelative bit count from the minimum value to a header. For example, thethree-dimensional data encoding device may add value 0 to a header whenR_TH[i]=63 is satisfied and the minimum bit count is 6, and may addvalue 2 to a header when R_TH[i]=255 is satisfied and the minimum bitcount is 6.

Alternatively, the three-dimensional data encoding device may entropyencode at least one of NumLoD, Thres_LoD[i], NumNeighborPoint[i],THd[i], QS[i], and R_TH[i], and add the entropy encoded one to a header.For example, the three-dimensional data encoding device may binarizeeach value and perform arithmetic encoding on the binary value. Inaddition, the three-dimensional data encoding device may encode eachvalue using a fixed length in order to reduce the processing amount.

Alternatively, the three-dimensional data encoding device does notalways need to add at least one of NumLoD, Thres_LoD[i],NumNeighborPoint[i], THd[i], QS[i], and R_TH[i] to a header. Forexample, at least one of these values may be defined by a profile or alevel in a standard, or the like. In this way, it is possible to reducethe bit amount of the header.

FIG. 40 is a diagram indicating the syntax example of attribute data(attribute_data) according to the present embodiment. The attribute dataincludes encoded data of the attribute information of a plurality ofthree-dimensional points. As indicated in FIG. 40, the attribute dataincludes an n-bit code and a remaining code.

The n-bit code is encoded data of a prediction residual of a value ofattribute information or a part of the encoded data. The bit length ofthe n-bit code depends on value R_TH[i]. For example, the bit length ofthe n-bit code is 6 bits when the value indicated by R_TH[i] is 63, thebit length of the n-bit code is 8 bits when the value indicated byR_TH[i] is 255.

The remaining code is encoded data encoded using exponential-Golombcoding among encoded data of the prediction residual of the value of theattribute information. The remaining code is encoded or decoded when thevalue of the n-bit code is equal to R_TH[i]. The three-dimensional datadecoding device decodes the prediction residual by adding the value ofthe n-bit code and the value of the remaining code. It is to be notedthat the remaining code does not always need to be encoded or decodedwhen the value of the n-bit code is not equal to R_TH[i].

Hereinafter, a description is given of a flow of processing in thethree-dimensional data encoding device. FIG. 41 is a flowchart of athree-dimensional data encoding process performed by thethree-dimensional data encoding device.

First, the three-dimensional data encoding device encodes geometryinformation (geometry) (S3001). For example, the three-dimensional dataencoding is performed using octree representation.

When the positions of three-dimensional points changed by quantization,etc, after the encoding of the geometry information, thethree-dimensional data encoding device re-assigns attribute informationof the original three-dimensional points to the post-changethree-dimensional points (S3002). For example, the three-dimensionaldata encoding device interpolates values of attribute informationaccording to the amounts of change in position to re-assign theattribute information. For example, the three-dimensional data encodingdevice detects pre-change N three-dimensional points closer to thepost-change three-dimensional positions, and performs weighted averagingof the values of attribute information of the N three-dimensionalpoints. For example, the three-dimensional data encoding devicedetermines weights based on distances from the post-changethree-dimensional positions to the respective N three-dimensionalpositions in weighted averaging. The three-dimensional data encodingdevice then determines the values obtained through the weightedaveraging to be the values of the attribute information of thepost-change three-dimensional points. When two or more of thethree-dimensional points are changed to the same three-dimensionalposition through quantization, etc., the three-dimensional data encodingdevice may assign the average value of the attribute information of thepre-change two or more three-dimensional points as the values of theattribute information of the post-change three-dimensional points.

Next, the three-dimensional data encoding device encodes the attributeinformation (attribute) re-assigned (S3003). For example, when encodinga plurality of kinds of attribute information, the three-dimensionaldata encoding device may encode the plurality of kinds of attributeinformation in order. For example, when encoding colors and reflectancesas attribute information, the three-dimensional data encoding device maygenerate a bitstream added with the color encoding results and thereflectance encoding results after the color encoding results. It is tobe noted that the order of the plurality of encoding results ofattribute information to be added to a bitstream is not limited to theorder, and may be any order.

Alternatively, the three-dimensional data encoding device may add, to aheader for example, information indicating the start location of encodeddata of each attribute information in a bitstream. In this way, thethree-dimensional data decoding device is capable of selectivelydecoding attribute information required to be decoded, and thus iscapable of skipping the decoding process of the attribute informationnot required to be decoded. Accordingly, it is possible to reduce theamount of processing by the three-dimensional data decoding device.Alternatively, the three-dimensional data encoding device may encode aplurality of kinds of attribute information in parallel, and mayintegrate the encoding results into a single bitstream. In this way, thethree-dimensional data encoding device is capable of encoding theplurality of kinds of attribute information at high speed.

FIG. 42 is a flowchart of an attribute information encoding process(S3003). First, the three-dimensional data encoding device sets LoDs(S3011). In other words, the three-dimensional data encoding deviceassigns each of three-dimensional points to any one of the plurality ofLoDs.

Next, the three-dimensional data encoding device starts a loop for eachLoD (S3012). In other words, the three-dimensional data encoding deviceiteratively performs the processes of Steps from S3013 to S3021 for eachLoD.

Next, the three-dimensional data encoding device starts a loop for eachthree-dimensional point (S3013). In other words, the three-dimensionaldata encoding device iteratively performs the processes of Steps fromS3014 to S3020 for each three-dimensional point.

First, the three-dimensional data encoding device searches a pluralityof neighbor points which are three-dimensional points present in theneighborhood of a current three-dimensional point to be processed andare to be used to calculate a predicted value of the currentthree-dimensional point (S3014). Next, the three-dimensional dataencoding device calculates the weighted average of the values ofattribute information of the plurality of neighbor points, and sets theresulting value to predicted value P (S3015). Next, thethree-dimensional data encoding device calculates a prediction residualwhich is the difference between the attribute information of the currentthree-dimensional point and the predicted value (S3016). Next, thethree-dimensional data encoding device quantizes the prediction residualto calculate a quantized value (S3017). Next, the three-dimensional dataencoding device arithmetic encodes the quantized value (S3018).

Next, the three-dimensional data encoding device inverse quantizes thequantized value to calculate an inverse quantized value (S3019). Next,the three-dimensional data encoding device adds a prediction value tothe inverse quantized value to generate a decoded value (S3020). Next,the three-dimensional data encoding device ends the loop for eachthree-dimensional point (S3021). Next, the three-dimensional dataencoding device ends the loop for each LoD (S3022).

Hereinafter, a description is given of a three-dimensional data decodingprocess in the three-dimensional data decoding device which decodes abitstream generated by the three-dimensional data encoding device.

The three-dimensional data decoding device generates decoded binary databy arithmetic decoding the binary data of the attribute information inthe bitstream generated by the three-dimensional data encoding device,according to the method similar to the one performed by thethree-dimensional data encoding device. It is to be noted that whenmethods of applying arithmetic encoding are switched between the part(n-bit code) binarized using n bits and the part (remaining code)binarized using exponential-Golomb coding in the three-dimensional dataencoding device, the three-dimensional data decoding device performsdecoding in conformity with the arithmetic encoding, when applyingarithmetic decoding.

For example, the three-dimensional data decoding device performsarithmetic decoding using coding tables (decoding tables) different foreach bit in the arithmetic decoding of the n-bit code. At this time, thethree-dimensional data decoding device may change the number of codingtables to be used for each bit. For example, the three-dimensional datadecoding device performs arithmetic decoding using one coding table forfirst bit b0 in the n-bit code. The three-dimensional data decodingdevice uses two coding tables for the next bit b1. The three-dimensionaldata decoding device switches coding tables to be used for arithmeticdecoding of bit b1 according to the value (0 or 1) of b0. Likewise, thethree-dimensional data decoding device uses four coding tables for thenext bit b2. The three-dimensional data decoding device switches codingtables to be used for arithmetic decoding of bit b2 according to thevalues (in the range from 0 to 3) of b0 and b1.

In this way, the three-dimensional data decoding device uses 2^(n-1)coding tables when arithmetic decoding each bit bn−1 in the n-bit code.The three-dimensional data decoding device switches coding tables to beused according to the values (occurrence patterns) of bits before bn−1.In this way, the three-dimensional data decoding device is capable ofappropriately decoding a bitstream encoded at an increased codingefficiency using the coding tables appropriate for each bit.

It is to be noted that the three-dimensional data decoding device mayreduce the number of coding tables to be used for each bit. For example,the three-dimensional data decoding device may switch 2^(m) codingtables according to the values (occurrence patterns) of m bits (m<n−1)before bn−1 when arithmetic decoding each bit bn−1. In this way, thethree-dimensional data decoding device is capable of appropriatelydecoding the bitstream encoded at the increased coding efficiency whilereducing the number of coding tables to be used for each bit. It is tobe noted that the three-dimensional data decoding device may update theoccurrence probabilities of 0 and 1 in each coding table according tothe values of binary data occurred actually. In addition, thethree-dimensional data decoding device may fix the occurrenceprobabilities of 0 and 1 in coding tables for some bit(s). In this way,it is possible to reduce the number of updates of occurrenceprobabilities, and thus to reduce the processing amount.

For example, when an n-bit code is b0, b1, b2, . . . , bn−1, the codingtable for b0 is one (CTb0). Coding tables for b1 are two tables (CTb10and CTb11). Coding tables to be used are switched according to the value(0 or 1) of b0. Coding tables for b2 are four tables (CTb20, CTb21,CTb22, and CTb23). Coding tables to be used according to the values (inthe range from 0 to 3) of b0 and b1. Coding tables for bn−1 are 2^(n-1)tables (CTbn0, CTbn1, . . . , CTbn (2^(n-1)−1)). Coding tables to beused are switched according to the values (in the range from 0 to2^(n-1)−1) of b0, b1, . . . , bn−2.

FIG. 43 is a diagram for illustrating processing in the case whereremaining codes are exponential-Golomb codes. As indicated in FIG. 43,the part (remaining part) binarized and encoded by the three-dimensionaldata encoding device using exponential-Golomb coding includes a prefixand a suffix. For example, the three-dimensional data decoding deviceswitches coding tables between the prefix and the suffix. In otherwords, the three-dimensional data decoding device arithmetic decodeseach of bits included in the prefix using coding tables for the prefix,and arithmetic decodes each of bits included in the suffix using codingtables for the suffix.

It is to be noted that the three-dimensional data decoding device mayupdate the occurrence probabilities of 0 and 1 in each coding tableaccording to the values of binary data occurred at the time of decoding.In addition, the three-dimensional data decoding device may fix theoccurrence probabilities of 0 and 1 in one of coding tables. In thisway, it is possible to reduce the number of updates of occurrenceprobabilities, and thus to reduce the processing amount. For example,the three-dimensional data decoding device may update the occurrenceprobabilities for the prefix, and may fix the occurrence probabilitiesfor the suffix.

Furthermore, the three-dimensional data decoding device decodes thequantized prediction residual (unsigned integer value) by debinarizingthe binary data of the prediction residual arithmetic decoded accordingto a method in conformity with the encoding method used by thethree-dimensional data encoding device. The three-dimensional datadecoding device first arithmetic decodes the binary data of an n-bitcode to calculate a value of the n-bit code. Next, the three-dimensionaldata decoding device compares the value of the n-bit code with thresholdvalue R_TH.

In the case where the value of the n-bit code and threshold value R_THmatch, the three-dimensional data decoding device determines that a bitencoded using exponential-Golomb coding is present next, and arithmeticdecodes the remaining code which is the binary data encoded usingexponential-Golomb coding. The three-dimensional data decoding devicethen calculates, from the decoded remaining code, a value of theremaining code using a reverse lookup table indicating the relationshipbetween the remaining code and the value. FIG. 44 is a diagramindicating an example of a reverse lookup table indicating relationshipsbetween remaining codes and the values thereof. Next, thethree-dimensional data decoding device adds the obtained value of theremaining code to R_TH, thereby obtaining a debinarized quantizedprediction residual.

In the opposite case where the value of the n-bit code and thresholdvalue R_TH do not match (the value of the n-bit code is smaller thanvalue R_TH), the three-dimensional data decoding device determines thevalue of the n-bit code to be the debinarized quantized predictionresidual as it is. In this way, the three-dimensional data decodingdevice is capable of appropriately decoding the bitstream generatedwhile switching the binarization methods according to the values of theprediction residuals by the three-dimensional data encoding device.

It is to be noted that, when threshold value R_TH is added to, forexample, a header of a bitstream, the three-dimensional data decodingdevice may decode threshold value R_TH from the header, and may switchdecoding methods using decoded threshold value R_TH. When thresholdvalue R_TH is added to, for example, a header for each LoD, thethree-dimensional data decoding device switch decoding methods usingthreshold value R_TH decoded for each LoD.

For example, when threshold value R_TH is 63 and the value of thedecoded n-bit code is 63, the three-dimensional data decoding devicedecodes the remaining code using exponential-Golomb coding, therebyobtaining the value of the remaining code. For example, in the exampleindicated in FIG. 44, the remaining code is 00100, and 3 is obtained asthe value of the remaining code. Next, the three-dimensional datadecoding device adds 63 that is threshold value R_TH and 3 that is thevalue of the remaining code, thereby obtaining 66 that is the value ofthe prediction residual.

In addition, when the value of the decoded n-bit code is 32, thethree-dimensional data decoding device sets 32 that is the value of then-bit code to the value of the prediction residual.

In addition, the three-dimensional data decoding device converts thedecoded quantized prediction residual, for example, from an unsignedinteger value to a signed integer value, through processing inverse tothe processing in the three-dimensional data encoding device. In thisway, when entropy decoding the prediction residual, thethree-dimensional data decoding device is capable of appropriatelydecoding the bitstream generated without considering occurrence of anegative integer. It is to be noted that the three-dimensional datadecoding device does not always need to convert an unsigned integervalue to a signed integer value, and that, for example, thethree-dimensional data decoding device may decode a sign bit whendecoding a bitstream generated by separately entropy encoding the signbit.

The three-dimensional data decoding device performs decoding by inversequantizing and reconstructing the quantized prediction residual afterbeing converted to the signed integer value, to obtain a decoded value.The three-dimensional data decoding device uses the generated decodedvalue for prediction of a current three-dimensional point to be decodedand the following three-dimensional point(s). More specifically, thethree-dimensional data decoding device multiplies the quantizedprediction residual by a decoded quantization scale to calculate aninverse quantized value and adds the inverse quantized value and thepredicted value to obtain the decoded value.

The decoded unsigned integer value (unsigned quantized value) isconverted into a signed integer value through the processing indicatedbelow. When the least significant bit (LSB) of decoded unsigned integervalue a2 u is 1, the three-dimensional data decoding device sets signedinteger value a2 q to −((a2 u+1)>>1). When the LSB of unsigned integervalue a2 u is not 1, the three-dimensional data decoding device setssigned integer value a2 q to ((a2 u>>1).

Likewise, when an LSB of decoded unsigned integer value b2 u is 1, thethree-dimensional data decoding device sets signed integer value b2 q to−((b2 u+1)>>1). When the LSB of decoded unsigned integer value n2 u isnot 1, the three-dimensional data decoding device sets signed integervalue b2 q to ((b2 u>>1).

Details of the inverse quantization and reconstruction processing by thethree-dimensional data decoding device are similar to the inversequantization and reconstruction processing in the three-dimensional dataencoding device.

Hereinafter, a description is given of a flow of processing in thethree-dimensional data decoding device. FIG. 45 is a flowchart of athree-dimensional data decoding process performed by thethree-dimensional data decoding device. First, the three-dimensionaldata decoding device decodes geometry information (geometry) from abitstream (S3031). For example, the three-dimensional data decodingdevice performs decoding using octree representation.

Next, the three-dimensional data decoding device decodes attributeinformation (attribute) from the bitstream (S3032). For example, whendecoding a plurality of kinds of attribute information, thethree-dimensional data decoding device may decode the plurality of kindsof attribute information in order. For example, when decoding colors andreflectances as attribute information, the three-dimensional datadecoding device decodes the color encoding results and the reflectanceencoding results in order of assignment in the bitstream. For example,when the reflectance encoding results are added after the color encodingresults in a bitstream, the three-dimensional data decoding devicedecodes the color encoding results, and then decodes the reflectanceencoding results. It is to be noted that the three-dimensional datadecoding device may decode, in any order, the encoding results of theattribute information added to the bitstream.

Alternatively, the three-dimensional data encoding device may add, to aheader for example, information indicating the start location of encodeddata of each attribute information in a bitstream. In this way, thethree-dimensional data decoding device is capable of selectivelydecoding attribute information required to be decoded, and thus iscapable of skipping the decoding process of the attribute informationnot required to be decoded. Accordingly, it is possible to reduce theamount of processing by the three-dimensional data decoding device. Inaddition, the three-dimensional data decoding device may decode aplurality of kinds of attribute information in parallel, and mayintegrate the decoding results into a single three-dimensional pointcloud. In this way, the three-dimensional data decoding device iscapable of decoding the plurality of kinds of attribute information athigh speed.

FIG. 46 is a flowchart of an attribute information decoding process(S3032). First, the three-dimensional data decoding device sets LoDs(S3041). In other words, the three-dimensional data decoding deviceassigns each of three-dimensional points having the decoded geometryinformation to any one of the plurality of LoDs. For example, thisassignment method is the same as the assignment method used in thethree-dimensional data encoding device.

Next, the three-dimensional data decoding device starts a loop for eachLoD (S3042). In other words, the three-dimensional data decoding deviceiteratively performs the processes of Steps from S3043 to S3049 for eachLoD.

Next, the three-dimensional data decoding device starts a loop for eachthree-dimensional point (S3043). In other words, the three-dimensionaldata decoding device iteratively performs the processes of Steps fromS3044 to S3048 for each three-dimensional point.

First, the three-dimensional data decoding device searches a pluralityof neighbor points which are three-dimensional points present in theneighborhood of a current three-dimensional point to be processed andare to be used to calculate a predicted value of the currentthree-dimensional point to be processed (S3044). Next, thethree-dimensional data decoding device calculates the weighted averageof the values of attribute information of the plurality of neighborpoints, and sets the resulting value to predicted value P (S3045). It isto be noted that these processes are similar to the processes in thethree-dimensional data encoding device.

Next, the three-dimensional data decoding device arithmetic decodes thequantized value from the bitstream (S3046). The three-dimensional datadecoding device inverse quantizes the decoded quantized value tocalculate an inverse quantized value (S3047). Next, thethree-dimensional data decoding device adds a predicted value to theinverse quantized value to generate a decoded value (S3048). Next, thethree-dimensional data decoding device ends the loop for eachthree-dimensional point (S3049). Next, the three-dimensional dataencoding device ends the loop for each LoD (S3050).

The following describes configurations of the three-dimensional dataencoding device and three-dimensional data decoding device according tothe present embodiment. FIG. 47 is a block diagram illustrating aconfiguration of three-dimensional data encoding device 3000 accordingto the present embodiment. Three-dimensional data encoding device 3000includes geometry information encoder 3001, attribute informationre-assigner 3002, and attribute information encoder 3003.

Attribute information encoder 3003 encodes geometry information(geometry) of a plurality of three-dimensional points included in aninput point cloud. Attribute information re-assigner 3002 re-assigns thevalues of attribute information of the plurality of three-dimensionalpoints included in the input point cloud, using the encoding anddecoding results of the geometry information. Attribute informationencoder 3003 encodes the re-assigned attribute information (attribute).Furthermore, three-dimensional data encoding device 3000 generates abitstream including the encoded geometry information and the encodedattribute information.

FIG. 48 is a block diagram illustrating a configuration ofthree-dimensional data decoding device 3010 according to the presentembodiment. Three-dimensional data decoding device 3010 includesgeometry information decoder 3011 and attribute information decoder3012.

Geometry information decoder 3011 decodes the geometry information(geometry) of a plurality of three-dimensional points from a bitstream.Attribute information decoder 3012 decodes the attribute information(attribute) of the plurality of three-dimensional points from thebitstream. Furthermore, three-dimensional data decoding device 3010integrates the decoded geometry information and the decoded attributeinformation to generate an output point cloud.

Embodiment 4

According to a three-dimensional data encoding device according toEmbodiment 4, geometry information of a plurality of three-dimensionalpoints is encoded using a prediction tree generated based on thegeometry information.

FIG. 49 is a diagram illustrating an example of a prediction tree usedin the three-dimensional data encoding method according to Embodiment 4.FIG. 50 is a flowchart illustrating an example of the three-dimensionaldata encoding method according to Embodiment 4. FIG. 51 is a flowchartillustrating an example of a three-dimensional data decoding methodaccording to Embodiment 4.

As shown in FIG. 49 and FIG. 50, in the three-dimensional data encodingmethod, a prediction tree is generated using a plurality ofthree-dimensional points, and node information included in each node inthe prediction tree is then encoded. In this way, a bitstream includingencoded node information is obtained. Each item of node information isinformation concerning one node of the prediction tree, for example.Each item of node information includes geometry information of one node,an index of the one node, the number of child nodes of the one node, aprediction mode used for encoding the geometry information of the onenode, and a prediction residual.

As shown in FIG. 49 and FIG. 51, in the three-dimensional data decodingdevice, each item of encoded node information included in the bitstreamis decoded, and then the geometry information is decoded whilegenerating the prediction tree.

Next, a method of generating a prediction tree will be described withreference to FIG. 52.

FIG. 52 is a diagram for describing a method of generating a predictiontree according to Embodiment 4.

In the method of generating a prediction tree, as shown in Part (a) ofFIG. 52, the three-dimensional data encoding device first adds point 0as an initial point of the prediction tree. Geometry information ofpoint 0 is represented by coordinates including three elements (x0, y0,z0). The geometry information of point 0 may be represented bycoordinates of the three-dimensional Cartesian coordinate system orcoordinates of the polar coordinate system.

child_count is incremented by 1 each time one child node is added to thenode for which the child_count is set. Once the generation of theprediction tree is completed, child_count of each node indicates thenumber of child nodes of the node, and is added to the bitstream.pred_mode indicates the prediction mode for predicting values of thegeometry information of each node. Details of the prediction mode willbe described later.

As shown in Part (b) of FIG. 52, the three-dimensional data encodingdevice then adds point 1 to the prediction tree. In this step, thethree-dimensional data encoding device may search the point cloudalready added to the prediction tree for a point nearest to point 1 andadd point 1 as a child node of the nearest point. Geometry informationof point 1 is represented by coordinates including three elements (x1,y1, z1). The geometry information of point 1 may be represented bycoordinates of the three-dimensional Cartesian coordinate system orcoordinates of the polar coordinate system. In the case of FIG. 52,point 0 is the nearest point of point 1, and point 1 is added as a childnode of point 0. The three-dimensional data encoding device thenincrements by 1 the value indicated by child_count of point 0.

Note that the predicted value of the geometry information of each nodemay be calculated when adding the node to the prediction tree. Forexample, in the case of Part (b) of FIG. 52, the three-dimensional dataencoding device may add point 1 as a child node of point 0 and calculatethe geometry information of point 0 as a predicted value. In that case,pred_mode=1 may be set. pred_mode is prediction mode information(prediction mode value) indicating a prediction mode. After calculatingthe predicted value, the three-dimensional data encoding device maycalculate residual_value (prediction residual) of point 1. Here,residual_value is a difference value obtained by subtracting thepredicted value calculated in the prediction mode indicated by pred_modefrom the geometry information of the node. As described, according tothe three-dimensional data encoding method, the difference value withrespect to the predicted value, rather than the geometry informationitself, is encoded, so that the encoding efficiency can be improved.

As shown in Part (c) of FIG. 52, the three-dimensional data encodingdevice then adds point 2 to the prediction tree. In this step, thethree-dimensional data encoding device may search the point cloudalready added to the prediction tree for a point nearest to point 2 andadd point 2 as a child node of the nearest point. Geometry informationof point 2 is represented by coordinates including three elements (x2,y2, z2). The geometry information of point 2 may be represented bycoordinates of the three-dimensional Cartesian coordinate system orcoordinates of the polar coordinate system. In the case of FIG. 52,point 1 is the nearest point of point 2, and point 2 is added as a childnode of point 1. The three-dimensional data encoding device thenincrements by 1 the value indicated by child_count of point 1.

As shown in Part (d) of FIG. 52, the three-dimensional data encodingdevice then adds point 3 to the prediction tree. In this step, thethree-dimensional data encoding device may search the point cloudalready added to the prediction tree for a point nearest to point 3 andadd point 3 as a child node of the nearest point. Geometry informationof point 3 is represented by coordinates including three elements (x3,y3, z3). The geometry information of point 3 may be represented bycoordinates of the three-dimensional Cartesian coordinate system orcoordinates of the polar coordinate system. In the case of FIG. 52,point 0 is the nearest point of point 3, and point 3 is added as a childnode of point 0. The three-dimensional data encoding device thenincrements by 1 the value indicated by child_count of point 0.

In this way, the three-dimensional data encoding device adds all pointsto the prediction tree and ends the generation of the prediction tree.When the generation of the prediction tree ends, any node havingchild_count=0 is a leaf of the prediction tree. After the generation ofthe prediction tree ends, the three-dimensional data encoding deviceencodes child_count, pred_mode, and residual_value of each node selectedin the depth-first order from the root node. Selecting a node in thedepth-first order means that the three-dimensional data encoding deviceselects, as a node subsequent to a node selected, a child node that hasnot been selected yet of the one or more child nodes of the selectednode. When the selected node has no child node, the three-dimensionaldata encoding device selects a child node that has not been selected yetof the parent node of the selected node.

Note that the order of encoding is not limited to the depth-first order,but may be the width-first order, for example. When selecting a node inthe width-first order, the three-dimensional data encoding deviceselects, as a node subsequent to a node selected, a node that has notbeen selected yet of the one or more nodes at the same depth (layer) asthe selected node. When there is no node at the same depth as theselected node, the three-dimensional data encoding device selects a nodethat has not been selected yet of the one or more nodes at thesubsequent depth.

Note that points 0 to 3 are examples of three-dimensional points.

Note that although child_count, pred_mode, and residual_value arecalculated when adding each point to the prediction tree in thethree-dimensional data encoding method described above, the presentinvention is not necessarily limited to this, and they may be calculatedafter the generation of the prediction tree ends.

The three-dimensional data encoding device to which a plurality ofthree-dimensional points are input may re-order the inputthree-dimensional points in ascending or descending Morton order andprocess the three-dimensional points in the latter order. This allowsthe three-dimensional data encoding device to efficiently search for thenearest point of the three-dimensional point to be processed and improvethe encoding efficiency. The three-dimensional data encoding device neednot re-order the three-dimensional points and may process thethree-dimensional points in the order of input. For example, thethree-dimensional data encoding device may generate a prediction treewithout a branch in the order of input of a plurality ofthree-dimensional points. Specifically, the three-dimensional dataencoding device may add an input three-dimensional point subsequent to apredetermined three-dimensional point in the order of input of aplurality of three-dimensional points as a child node of thepredetermined three-dimensional point.

Next, a first example of prediction modes will be described withreference to FIG. 53. FIG. 53 is a diagram for describing a firstexample of prediction modes according to Embodiment 4. FIG. 53 is adiagram illustrating a part of a prediction tree.

As shown below, eight prediction modes may be set. As an example, a casewhere a predicted value for point c is calculated as shown in FIG. 53will be described. In the prediction tree, as shown, the parent node ofpoint c is point p0, the grandparent node of point c is point p1, andthe great grandparent node of point c is point p2. Note that point c,point p0, point p1, and point p2 are examples of three-dimensionalpoints.

A prediction mode whose prediction mode value is 0 (referred to asprediction mode 0, hereinafter) may be set without prediction. That is,in prediction mode 0, the three-dimensional data encoding device maycalculate geometry information of input point c as a predicted value ofpoint c.

A prediction mode whose prediction mode value is 1 (referred to asprediction mode 1, hereinafter) may be set for a differential predictionwith respect to point p0. That is, the three-dimensional data encodingdevice may calculate geometry information of point p0, which is theparent node of point c, as a predicted value of point c.

A prediction mode whose prediction mode value is 2 (referred to asprediction mode 2, hereinafter) may be set for a linear prediction basedon point p0 and point p1. That is, the three-dimensional data encodingdevice may calculate, as a predicted value of point c, a predictionresult of a linear prediction based on geometry information of point p0,which is the parent node of point c, and geometry information of pointp1, which is the grandparent node of point c.

Predicted value=2×p0−p1  (Equation T1)

In Equation T1, p0 denotes geometry information of point p0, and p1denotes geometry information of point p1.

A prediction mode whose prediction mode value is 3 (referred to asprediction mode 3, hereinafter) may be set for a parallelogramprediction based on point p0, point p1, and point p2. That is, thethree-dimensional data encoding device may calculate, as a predictedvalue of point c, a prediction result of a parallelogram predictionbased on geometry information of point p0, which is the parent node ofpoint c, geometry information of point p1, which is the grandparent nodeof point c, and geometry information of point p2, which is the greatgrandparent node of point c. Specifically, the three-dimensional dataencoding device calculates a predicted value of point c in predictionmode 3 according to the following equation T2.

Predicted value=p0+p1−p2  (Equation T2)

In Equation T2, p0 denotes geometry information of point p0, p1 denotesgeometry information of point p1, and p2 denotes geometry information ofpoint p2.

A prediction mode whose prediction mode value is 4 (referred to asprediction mode 4, hereinafter) may be set for a differential predictionwith respect to point p1. That is, the three-dimensional data encodingdevice may calculate geometry information of point p1, which is thegrandparent node of point c, as a predicted value of point c.

A prediction mode whose prediction mode value is 5 (referred to asprediction mode 5, hereinafter) may be set for a differential predictionwith respect to point p2. That is, the three-dimensional data encodingdevice may calculate geometry information of point p2, which is thegreat grandparent node of point c, as a predicted value of point c.

A prediction mode whose prediction mode value is 6 (referred to asprediction mode 6, hereinafter) may be set for an average of geometryinformation of any two or more of point p0, point p1, and point p2. Thatis, the three-dimensional data encoding device may calculate, as apredicted value of point c, an average value of any two or more ofgeometry information of point p0, which is the parent node of point c,geometry information of point p1, which is the grandparent node of pointc, and geometry information of point p2, which is the great grandparentnode of point c. For example, when the three-dimensional data encodingdevice uses geometry information of point p0 and geometry information ofpoint p1 for calculation of a predicted value, the three-dimensionaldata encoding device calculates a predicted value of point c inprediction mode 6 according to the following Equation T3.

Predicted value=(p0+p1)/2  (Equation T3)

In Equation T3, p0 denotes geometry information of point p0, and p1denotes geometry information of point p1.

A prediction mode whose prediction mode value is 7 (referred to asprediction mode 7, hereinafter) may be set for a non-linear predictionbased on distance d0 between point p0 and point p1 and distance d1between point p2 and point p1. That is, the three-dimensional dataencoding device may calculate, as a predicted value of point c, aprediction result of a non-linear prediction based on distance d0 anddistance d1.

Note that the prediction method assigned to each prediction mode is notlimited to the example described above. The eight prediction modesdescribed above and the eight prediction methods described above neednot be combined in the manner described above, and can be combined inany manner. For example, when prediction modes are encoded by an entropyencoding, such as arithmetic encoding, a prediction method of highfrequency of use may be assigned to prediction mode 0. In this way, theencoding efficiency can be improved. The three-dimensional data encodingdevice may can also improve the encoding efficiency by dynamicallychanging the assignment of prediction modes according to the frequencyof use of the prediction modes while performing the encoding process.For example, the three-dimensional data encoding device may count thefrequency of use of each prediction mode in the encoding and assign aprediction mode indicated by a smaller value to a prediction method of ahigher frequency of use. In this way, the encoding efficiency can beimproved. Note that M denotes a prediction mode count indicating thenumber of prediction modes, and in the example described above, thereare eight prediction modes 0 to 7, and therefore, M=8.

As predicted values (px, py, pz) of geometry information (x, y, z) of athree-dimensional point, the three-dimensional data encoding device maycalculate predicted values used for calculation of geometry informationof a three-dimensional point to be encoded based on geometry informationof a three-dimensional point that is at a short distance from thethree-dimensional point to be encoded among peripheral three-dimensionalpoints of the three-dimensional point to be encoded. Thethree-dimensional data encoding device may add prediction modeinformation (pred_mode) for each three-dimensional point so that apredicted value to be calculated can be selected according to theprediction mode.

For example, when the total number of prediction modes is M, it ispossible that geometry information of nearest three-dimensional point p0is assigned to prediction mode 0, . . . , and geometry information ofthree-dimensional point p2 is assigned to prediction mode M−1, and theprediction mode used for prediction is added for each three-dimensionalpoint to the bitstream.

Note that prediction mode count M may be added to the bitstream. Thevalue of prediction mode count M need not be added to the bitstream, andmay be defined by profile, level or the like of a standard. The value ofprediction mode count M calculated from number N of three-dimensionalpoints used for prediction may also be used. For example, predictionmode count M may be calculated according to M=N+1.

FIG. 54 is a diagram illustrating a second example of a table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4.

The table shown in FIG. 54 is an example in the case where number N ofthree-dimensional points used for prediction is 4, and prediction modecount M=5.

In the second example, a predicted value of geometry information ofpoint c is calculated based on geometry information of at least any oneof point p0, point p1, and point p2. The prediction mode is added foreach three-dimensional point to be encoded. The predicted value iscalculated according to the prediction mode added.

FIG. 55 is a diagram illustrating a specific example of the secondexample of the table that indicates a predicted value calculated in eachprediction mode according to Embodiment 4.

For example, the three-dimensional data encoding device may selectprediction mode 1 and encode geometry information (x, y, z) of athree-dimensional point to be encoded based on predicted values (p0 x,p0 y, p0 z), respectively. In that case, “1”, which is a prediction modevalue indicating selected prediction mode 1, is added to the bitstream.

As described, when selecting a prediction mode for calculating apredicted value of each of three elements included in the geometryinformation of the three-dimensional point to be encoded, thethree-dimensional data encoding device may select a prediction modecommon to the three elements.

FIG. 56 is a diagram illustrating a third example of the table thatindicates a predicted value calculated in each prediction mode accordingto Embodiment 4.

The table shown in FIG. 56 is an example in the case where number N ofthree-dimensional points used for prediction is 2, and prediction modecount M=5.

In the third example, a predicted value of geometry information of pointc is calculated based on geometry information of at least any one ofpoint p0 and point p1. The prediction mode is added for eachthree-dimensional point to be encoded. The predicted value is calculatedaccording to the prediction mode added.

Note that, when the number of peripheral three-dimensional points ofpoint c (neighboring point count) is less than 3, as in the thirdexample, any prediction mode to which no predicted value has beenassigned may be set as “not available”. When a prediction mode set as“not available” occurs, another prediction method may be assigned to theprediction mode. For example, geometry information of point p2 may beassigned to the prediction mode as a predicted value. Alternatively, apredicted value assigned to another prediction mode may be assigned tothe prediction mode. For example, geometry information of point p1,which is assigned to prediction mode 4, may be assigned to predictionmode 3, which is set as “not available”. In that case, geometryinformation of point p2 may be re-assigned to prediction mode 4. In thisway, when a prediction mode set as “not available” occurs, the encodingefficiency can be improved by re-assigning a prediction method.

Note that when geometry information has three elements, such as in thecase of the three-dimensional Cartesian coordinate system or the polarcoordinate system, predicted values may be calculated in different modesfor the three elements. For example, when the three elements arerepresented by x, y, and z of coordinates (x, y, z) in thethree-dimensional Cartesian coordinate system, the predicted value ofeach of the three elements may be calculated in a prediction modeselected for the element. For example, prediction mode values ofprediction mode pred_mode_x for calculating a predicted value of elementx (that is, x coordinate), prediction mode pred_mode_y for calculating apredicted value of element y (that is, y coordinate), and predictionmode pred_mode_z for calculating a predicted value of element z (thatis, z coordinate) may be selected. In that case, as the prediction modevalues indicating the prediction modes of the elements, the values inthe tables in FIG. 57 to FIG. 59 described later may be used, and theseprediction mode values may be added to the bitstream. Note that althoughcoordinates in the three-dimensional Cartesian coordinate system havebeen described above as an example of geometry information, thedescription holds true for coordinates in the polar coordinate system.

As described, when selecting a prediction mode for calculating apredicted value of each of three elements included in the geometryinformation of the three-dimensional point to be encoded, thethree-dimensional data encoding device may select a different predictionmode for each of three elements.

Predicted values of two or more of a plurality of elements of geometryinformation may be calculated in a common prediction mode. For example,when the three elements are represented by x, y, and z of coordinates(x, y, z) in the three-dimensional Cartesian coordinate system, aprediction mode value of prediction mode pred_mode_x for calculating apredicted value of element x and prediction mode pred_mode_yz forcalculating predicted values of elements y and z may be selected. Inthat case, as the prediction mode values indicating the prediction modesof the elements, the values in the tables in FIG. 57 to FIG. 59described later may be used, and these prediction mode values may beadded to the bitstream.

As described, when selecting a prediction mode for calculating apredicted value of each of three elements included in the geometryinformation of the three-dimensional point to be encoded, thethree-dimensional data encoding device may select a common predictionmode for two of the three elements and select a different predictionmode than the prediction mode for the two elements for the remaining oneelement.

FIG. 57 is a diagram illustrating a fourth example of the table thatindicates a predicted value calculated in each prediction mode.Specifically, the fourth example is an example in the case wheregeometry information used for a predicted value is the value of elementx of geometry information of a peripheral three-dimensional point.

As shown in FIG. 57, a predicted value calculated in prediction modepred_mode_x represented by a prediction mode value of “0” is 0. Apredicted value calculated in prediction mode pred_mode_x represented bya prediction mode value of “1” is p0 x, which is the x coordinate ofpoint p0. A predicted value calculated in prediction mode pred_mode_xrepresented by a prediction mode value of “2” is (2×p0 x−p1 x), which isthe prediction result of the linear prediction based on the x coordinateof point p0 and the x coordinate of point p1. A predicted valuecalculated in prediction mode pred_mode_x represented by a predictionmode value of “3” is (p0 x+p1 x−p2 x), which is the prediction result ofthe parallelogram prediction based on the x coordinate of point p0, thex coordinate of point p1, and the x coordinate of point p2. A predictedvalue calculated in prediction mode pred_mode_x represented by aprediction mode value of “4” is p1 x, which is the x coordinate of pointp1.

Note that when prediction mode pred_mode_x represented by a predictionmode value of “1” in the table of FIG. 57 is selected, for example, thex coordinate of the geometry information of the three-dimensional pointto be encoded may be encoded using predicted value p0 x. In that case,“1” as the prediction mode value is added to the bitstream.

FIG. 58 is a diagram illustrating a fifth example of the table thatindicates a predicted value calculated in each prediction mode.Specifically, the fifth example is an example in the case where geometryinformation used for a predicted value is the value of element y ofgeometry information of a peripheral three-dimensional point.

As shown in FIG. 58, a predicted value calculated in prediction modepred_mode_y represented by a prediction mode value of “0” is 0. Apredicted value calculated in prediction mode pred_mode_y represented bya prediction mode value of “1” is p0 y, which is the y coordinate ofpoint p0. A predicted value calculated in prediction mode pred_mode_yrepresented by a prediction mode value of “2” is (2×p0 y−p1 y), which isthe prediction result of the linear prediction based on the y coordinateof point p0 and the y coordinate of point p1. A predicted valuecalculated in prediction mode pred_mode_y represented by a predictionmode value of “3” is (p0 y+p1 y−p2 y), which is the prediction result ofthe parallelogram prediction based on the y coordinate of point p0, they coordinate of point p1, and the y coordinate of point p2. A predictedvalue calculated in prediction mode pred_mode_y represented by aprediction mode value of “4” is p1 y, which is they coordinate of pointp1.

Note that when prediction mode pred_mode_y represented by a predictionmode value of “1” in the table of FIG. 58 is selected, for example, they coordinate of the geometry information of the three-dimensional pointto be encoded may be encoded using predicted value p0 y. In that case,“1” as the prediction mode value is added to the bitstream.

FIG. 59 is a diagram illustrating a sixth example of the table thatindicates a predicted value calculated in each prediction mode.Specifically, the sixth example is an example in the case where geometryinformation used for a predicted value is the value of element z ofgeometry information of a peripheral three-dimensional point.

As shown in FIG. 59, a predicted value calculated in prediction modepred_mode_z represented by a prediction mode value of “0” is 0. Apredicted value calculated in prediction mode pred_mode_z represented bya prediction mode value of “1” is p0 z, which is the z coordinate ofpoint p0. A predicted value calculated in prediction mode pred_mode_zrepresented by a prediction mode value of “2” is (2×p0 z−p1 z), which isthe prediction result of the linear prediction based on the z coordinateof point p0 and the z coordinate of point p1. A predicted valuecalculated in prediction mode pred_mode_z represented by a predictionmode value of “3” is (p0 z+p1 z−p2 z), which is the prediction result ofthe parallelogram prediction based on the z coordinate of point p0, thez coordinate of point p1, and the z coordinate of point p2. A predictedvalue calculated in prediction mode pred_mode_z represented by aprediction mode value of “4” is p1 z, which is the z coordinate of pointp1.

Note that when prediction mode pred_mode_z represented by a predictionmode value of “1” in the table of FIG. 59 is selected, for example, thez coordinate of the geometry information of the three-dimensional pointto be encoded may be encoded using predicted value p0 z. In that case,“1” as the prediction mode value is added to the bitstream.

FIG. 60 is a diagram illustrating a seventh example of the table thatindicates a predicted value calculated in each prediction mode.Specifically, the seventh example is an example in the case wheregeometry information used for a predicted value are the values ofelement y and element z of geometry information of a peripheralthree-dimensional point.

As shown in FIG. 60, predicted values calculated in prediction modepred_mode_yz represented by a prediction mode value of “0” are 0.Predicted values calculated in prediction mode pred_mode_yz representedby a prediction mode value of “1” are (p0 y, p0 z), which are the ycoordinate and z coordinate of point p0. Predicted values calculated inprediction mode pred_mode_yz represented by a prediction mode value of“2” are (2×p0 y−p1 y, 2×p0 z−p1 z), which are the prediction result ofthe linear prediction based on the y coordinate and z coordinate ofpoint p0 and the y coordinate and z coordinate of point p1. Predictedvalues calculated in prediction mode pred_mode_yz represented by aprediction mode value of “3” are (p0 y+p1 y−p2 y, p0 z+p1 z−p2 z), whichare the prediction result of the parallelogram prediction based on the ycoordinate and z coordinate of point p0, the y coordinate and zcoordinate of point p1, and the y coordinate and z coordinate of pointp2. Predicted values calculated in prediction mode pred_mode_yzrepresented by a prediction mode value of “4” are (p1 y, p1 z), whichare the y coordinate and z coordinate of point p1.

Note that when prediction mode pred_mode_yz represented by a predictionmode value of “1” in the table of FIG. 60 is selected, for example, they coordinate and z coordinate of the geometry information of thethree-dimensional point to be encoded may be encoded using predictedvalues (p0 y, p0 z). In that case, “1” as the prediction mode value isadded to the bitstream.

In the tables of the fourth to seventh examples, the correspondencebetween the prediction modes and the prediction methods for calculatingpredicted values are the same as the correspondence in the table of thesecond example described above.

The prediction mode in the encoding may be selected by RD optimization.For example, cost cost(P) in the case where certain prediction mode P isselected may be calculated, and prediction mode P for which cost(P) isat the minimum may be selected. Cost cost(P) may be calculated fromprediction residual residual_value(P) in the case where the predictedvalue in prediction mode P is used, number of bits bit(P) required forencoding prediction mode P, and a λ value, which is an adjustmentparameter, according to equation D1.

cost(P)=abs(residual_value(P))+λ×bit(P)  (Equation D1)

abs(x) denotes an absolute value of x.

Instead of abs(x), the square of x may be used.

By using above equation D1, a prediction mode can be selected byconsidering the balance between the magnitude of the prediction residualand the number of bits required for encoding the prediction mode. Notethat the adjustment parameter λ may be set to be different valuesaccording to the value of a quantization scale. For example, it ispossible that when the quantization scale is small (when the bit rate ishigh), the λ value is decreased so that a prediction mode in whichprediction residual residual_value(P) is small is selected and theprediction precision is improved as far as possible, while when thequantization scale is large (when the bit rate is low), the λ value isincreased so that an appropriate prediction mode is selected byconsidering number of bits bit(P) required for encoding prediction modeP.

Note that the case where the quantization scale is small means a casewhere the quantization scale is smaller than a first quantization scale,for example. The case where the quantization scale is large means a casewhere the quantization scale is larger than a second quantization scalethat is larger than or equal to the first quantization scale. The λvalue may be set to be smaller as the quantization scale is smaller.

Prediction residual residual_value(P) is calculated by subtracting thepredicted value in prediction mode P from the geometry information ofthe three-dimensional point to be encoded. Note that instead ofreflecting prediction residual residual_value(P) in the costcalculation, prediction residual residual_value(P) may be quantized,inverse-quantized, and added to the predicted value to determine adecoded value, and the difference (encoding error) between the originalgeometry information of the three-dimensional point and the decodedvalue obtained using prediction mode P may be reflected in the costvalue. This allows a prediction mode with a small encoding error to beselected.

When a prediction mode is binarized and then encoded, for example,number of bits bit(P) required for encoding prediction mode P may be thebit count after the binarization.

For example, when prediction mode count M=5, as shown in FIG. 61, aprediction mode value representing a prediction mode with a truncatedunary code having a maximum value of 5 based on prediction mode count Mmay be binarized In that case, number of bits bit(P) required forencoding the prediction mode value is 1 when the prediction mode valueis “0”, 2 when the prediction mode value is “1”, 3 when the predictionmode value is “2”, and 4 when the prediction mode value is “3” or “4”.By using the truncated unary code, the bit count decreases as the valueof the prediction mode value decreases. Therefore, the code amount canbe reduced for a prediction mode value representing a prediction modethat is likely to be selected, for example, a prediction mode in which apredicted value with which cost(P) is likely to be at the minimum iscalculated, such as the predicted value of 0 calculated when theprediction mode value is “0” or the geometry information ofthree-dimensional point p0 calculated as a predicted value when theprediction mode value is “1”, that is, the geometry information of athree-dimensional point that is at a small distance from thethree-dimensional point to be encoded.

As described, the three-dimensional data encoding device may encode theprediction mode value representing selected prediction mode with theprediction mode count. Specifically, the three-dimensional data encodingdevice may encode a prediction mode value with a truncated unary codewhose maximum value is the prediction mode count.

When the maximum value of the prediction mode count is not determined,as shown in FIG. 62, a prediction mode value representing a predictionmode may be binarized with a unary code. When the probabilities ofoccurrence of the prediction modes are close to each other, as shown inFIG. 63, a prediction mode value representing a prediction mode may bebinarized with a fixed code to reduce the code amount.

As the value of number of bits bit(P) required for encoding theprediction mode value representing prediction mode P, binary data of theprediction mode value representing prediction mode P may bearithmetically encoded, and the code amount of the arithmeticallyencoded binary data may be used. In that case, the cost can becalculated with more precise required bit count bit(P), so that aprediction mode can be more properly selected.

Note that FIG. 61 is a diagram illustrating a first example of abinarization table in the case where a prediction mode value isbinarized and encoded according to Embodiment 4. Specifically, the firstexample is an example in which prediction mode count M=5, and aprediction mode value is binarized with a truncated unary code.

Note that FIG. 62 is a diagram illustrating a second example of thebinarization table in the case where a prediction mode value isbinarized and encoded according to Embodiment 4. Specifically, thesecond example is an example in which prediction mode count M=5, and aprediction mode value is binarized with a unary code.

Note that FIG. 63 is a diagram illustrating a third example of thebinarization table in the case where a prediction mode value isbinarized and encoded according to Embodiment 4. Specifically, the thirdexample is an example in which prediction mode count M=5, and aprediction mode value is binarized with a fixed code.

The prediction mode value representing the prediction mode (pred_mode)may be binarized and then arithmetically encoded before being added tothe bitstream. The prediction mode value may be binarized with atruncated unary code using the value of prediction mode count M asdescribed above, for example. In that case, the maximum bit count afterthe binarization of the prediction mode value is M−1.

The binary data resulting from the binarization may be arithmeticallyencoded using an encoding table. In that case, the encoding efficiencymay be improved by encoding the binary data using a different encodingtable for each bit. Furthermore, in order to reduce the number ofencoding tables, the leading one bit of the binary data may be encodedusing encoding table A for the leading bit, and each bit of theremaining bits of the binary data may be encoded using encoding table Bfor the remaining bits. For example, when encoding binary data “1110”whose prediction mode value is “3” shown in FIG. 64, the leading one bit“1” may be encoded using encoding table A, and each bit of the remainingbits “110” may be encoded using encoding table B.

Note that FIG. 64 is a diagram for describing an example of encoding ofbinary data in a binarization table in the case where a prediction modevalue is binarized and encoded according to Embodiment 4. Thebinarization table in FIG. 64 is an example in the case where predictionmode count M=5, and a prediction mode value is binarized with atruncated unary code.

In this way, the encoding efficiency can be improved by using adifferent encoding table depending on the position of the bit in thebinary data, while reducing the number of encoding tables. Note that,when encoding the remaining bits, each bit may be arithmetically encodedusing a different encoding table, or each bit may be decoded using adifferent encoding table based on the result of the arithmetic encoding.

When a prediction mode value is binarized and encoded with a truncatedunary code using prediction mode count M, prediction mode count M usedfor the truncated unary code may be added to the header or the like ofthe bitstream, in order that the prediction mode can be identified fromthe binary data decoded on the decoder side. The header of the bitstreamis a sequence parameter set (SPS), a geometry parameter set (GPS), or aslice header, for example. Maximum possible value MaxM of the predictionmode count may be defined by a standard or the like, and the value ofMaxM−M (M<=MaxM) may be added to the header. Prediction mode count Mneed not be added to the stream, and may be defined by profile or levelof a standard or the like.

Note that the prediction mode value binarized with a truncated unarycode can be arithmetically encoded by using different encoding tablesfor the leading bit part and the remaining part as described above. Notethat the probabilities of occurrence of 0 and 1 in each encoding tablemay be updated according to the value of the binary data that hasactually occurred. The probabilities of occurrence of 0 and 1 in one ofthe encoding tables may be fixed. By reducing the number of updates ofthe probabilities of occurrence in this way, the processing amount canbe reduced. For example, it is possible that the probabilities ofoccurrence for the leading bit part is updated, while the probabilitiesof occurrence for the remaining bit part is fixed.

FIG. 65 is a flowchart illustrating an example of encoding of aprediction mode value according to Embodiment 4. FIG. 66 is a flowchartillustrating an example of decoding of a prediction mode value accordingto Embodiment 4.

As shown in FIG. 65, in encoding of a prediction mode value, theprediction mode value is first binarized with a truncated unary codeusing prediction mode count M (S9701).

The binary data of the truncated unary code is then arithmeticallyencoded (S9702). In this way, the binary data is included in thebitstream as a prediction mode.

As shown in FIG. 66, in decoding of a prediction mode value, a bitstreamis first arithmetically decoded using prediction mode count M togenerate binary data of a truncated unary code (S9711).

A prediction mode value is then calculated from the binary data of thetruncated unary code (S9712).

Although an example where a prediction mode value representing aprediction mode (pred_mode) is binarized with a truncated unary codeusing the value of prediction mode count M has been shown as a method ofbinarizing a prediction mode value representing a prediction mode(pred_mode), the present invention is not necessarily limited to this.For example, a prediction mode value may be binarized with a truncatedunary code using number L (L<=M) of prediction modes to which apredicted value is assigned. For example, when prediction mode countM=5, if there is one peripheral three-dimensional point available forprediction of a certain three-dimensional point to be encoded, twoprediction modes may be “available”, and the remaining three predictionmodes may be “not available” as shown in FIG. 67. For example, as shownin FIG. 67, when prediction modes M=5, there may be one peripheralthree-dimensional point of the three-dimensional point to be encodedthat is available for prediction, and no predicted value may be assignedto the prediction modes represented by prediction mode values of “2”,“3”, and “4”.

In that case, as shown in FIG. 68, if the prediction mode value isbinarized with a truncated unary code whose maximum value is number L ofprediction modes to which a predicted value is assigned, the bit countafter the binarization may be able to be reduced compared with the casewhere the prediction mode value is binarized with a truncated unary codeusing prediction mode count M. In this case, for example, L=3, andtherefore, the bit count can be reduced by binarizing the predictionmode value with a truncated unary code whose maximum value is 3. In thisway, by binarizing the prediction mode value with a truncated unary codewhose maximum value is number L of prediction modes to which a predictedvalue is assigned, the bit count after the binarization of theprediction mode value can be reduced.

The binary data resulting from the binarization may be arithmeticallyencoded using an encoding table. In that case, the encoding efficiencymay be improved by encoding the binary data using a different encodingtable for each bit. Furthermore, in order to reduce the number ofencoding tables, the leading one bit of the binary data may be encodedusing encoding table A for the leading bit, and each bit of theremaining bits of the binary data may be encoded using encoding table Bfor the remaining bits. For example, when encoding binary data “1” whoseprediction mode value is “1” shown in FIG. 68, the leading one bit “1”is encoded using encoding table A. There is no remaining bit, andtherefore, further encoding is not needed. If there is any remainingbit, the remaining bit may be encoded using encoding table B.

Note that FIG. 68 is a diagram for describing an example of encoding ofbinary data in a binarization table in the case where a prediction modevalue is binarized and encoded according to Embodiment 4. Thebinarization table in FIG. 68 is an example in the case where aprediction mode value is binarized with a truncated unary code, providedwith number L of prediction modes to which a predicted value is assignedis 2.

In this way, the encoding efficiency can be improved by using adifferent encoding table depending on the position of the bit in thebinary data, while reducing the number of encoding tables. Note that,when encoding the remaining bits, each bit may be arithmetically encodedusing a different encoding table, or each bit may be decoded using adifferent encoding table based on the result of the arithmetic encoding.

When a prediction mode value is binarized and encoded with a truncatedunary code using number L of prediction modes to which a predicted valueis assigned, a prediction mode may be decoded on the decoder side byassigning a predicted value to a prediction mode in the same manner asin the encoding to calculate number L and using calculated number L todecode the prediction mode, in order that the prediction mode can beidentified from the binary data decoded on the decoder side.

Note that the prediction mode value binarized with a truncated unarycode can be arithmetically encoded by using different encoding tablesfor the leading bit part and the remaining part as described above. Notethat the probabilities of occurrence of 0 and 1 in each encoding tablemay be updated according to the value of the binary data that hasactually occurred. The probabilities of occurrence of 0 and 1 in one ofthe encoding tables may be fixed. By reducing the number of updates ofthe probabilities of occurrence in this way, the processing amount canbe reduced. For example, it is possible that the probabilities ofoccurrence for the leading bit part is updated, while the probabilitiesof occurrence for the remaining bit part is fixed.

FIG. 69 is a flowchart illustrating another example of encoding of aprediction mode value according to Embodiment 4. FIG. 70 is a flowchartillustrating another example of decoding of a prediction mode valueaccording to Embodiment 4.

As shown in FIG. 69, in encoding of a prediction mode value, number L ofprediction modes to which a predicted value is assigned is firstcalculated (S9721).

The prediction mode value is then binarized with a truncated unary codeusing number L (S9722).

The binary data of the truncated unary code is then arithmeticallyencoded (S9723).

As shown in FIG. 70, in decoding of a prediction mode value, number L ofprediction modes to which a predicted value is assigned is firstcalculated (S9731).

The bitstream is then arithmetically decoded using number L to generatebinary data of a truncated unary code (S9732).

A prediction mode value is then calculated from the binary data of thetruncated unary code (S9733).

The prediction mode value need not be added to every geometryinformation. For example, it is possible that when a certain conditionis satisfied, the prediction mode is fixed, and no prediction mode valueis added to the bitstream, while when the certain condition is notsatisfied, a prediction mode is selected, and a prediction mode value isadded to the bitstream. For example, it is possible that when conditionA is satisfied, the prediction mode value is fixed at “2”, and thepredicted value is calculated by linear prediction based on peripheralthree-dimensional points, and when condition A is not satisfied, oneprediction mode is selected from among a plurality of prediction modes,and the prediction mode value representing the selected prediction modeis added to the bitstream.

Certain condition A may be that distance d0 between point p1 and pointp0 and distance d1 between point p2 and point p1 are calculated, andabsolute difference value distdiff=|d0−d1| is less than threshold Thfix.When the absolute difference value is less than threshold Thfix, thethree-dimensional data encoding device determines that the differencebetween the predicted value of the linear prediction and the geometryinformation of the point to be processed is small, fixes the predictionmode value at “2”, and encodes no prediction mode value. In this way,the three-dimensional data encoding device can generate an appropriatepredicted value while reducing the code amount required for encoding theprediction mode. Note that when the absolute difference value is greaterthan or equal to threshold Thfix, the three-dimensional data encodingdevice may select a prediction mode and encode the prediction mode valuerepresenting the selected prediction mode.

Note that threshold Thfix may be added to the header or the like of thebitstream, and the encoder may be able to encode by changing the valueof threshold Thfix. For example, in encoding at high bit rate, theencoder may set the value of threshold Thfix to be smaller than inencoding at low bit rate and add the value of threshold Thfix to theheader, thereby increasing the cases where encoding is performed byselecting a prediction mode, so that the prediction residual isminimized. In encoding at low bit rate, the encoder sets the value ofthreshold Thfix to be greater than in encoding at high bit rate, addsthe value of threshold Thfix to the header, and perform the encodingwith a fixed prediction mode. In this way, by increasing the cases whereencoding is performed with a fixed prediction mode in encoding at lowbit rate, the encoding efficiency can be improved while reducing the bitamount involved with the encoding of the prediction mode. ThresholdThfix need not be added to the bitstream, and may be defined by profileor level of a standard.

N peripheral three-dimensional points of the three-dimensional point tobe encoded that are used for prediction are N three-dimensional pointsencoded and decoded the distance from the three-dimensional point to beencoded is less than threshold THd. The maximum value of N may be addedto the bitstream as NumNeighborPoint. The value of N need not alwaysagree with the value of NumNeighborPoint, such as when the number ofperipheral three-dimensional points encoded and decoded is less than thevalue of NumNeighborPoint.

Although an example has been shown where the prediction mode value isfixed at “2” when absolute difference value distdiff used for predictionis less than threshold Thfix[i], the present invention is notnecessarily limited to this, and the prediction mode value may be fixedat any of “0” to “M−1”. The prediction mode value fixed may be added tothe bitstream.

FIG. 71 is a flowchart illustrating an example of a process ofdetermining whether or not to fix the prediction mode value according tocondition A in encoding according to Embodiment 4. FIG. 72 is aflowchart illustrating an example of a process of determining whether toset the prediction mode value at a fixed value or decode the predictionmode value according to condition A in decoding according to Embodiment4.

As shown in FIG. 71, the three-dimensional data encoding device firstcalculates distance d0 between point p1 and point p0 and distance d1between point p2 and point p1, and calculates absolute difference valuedistdiff=|d0−d1| (S9741).

The three-dimensional data encoding device then determines whetherabsolute difference value distdiff is less than threshold Thfix or not(S9742). Note that threshold Thfix may be encoded and added to theheader or the like of the stream.

When absolute difference value distdiff is less than threshold Thfix (ifYes in S9742), the three-dimensional data encoding device determines theprediction mode value to be “2” (S9743).

On the other hand, when absolute difference value distdiff is greaterthan or equal to threshold Thfix (if No in S9742), the three-dimensionaldata encoding device sets one prediction mode from among a plurality ofprediction modes (S9744).

The three-dimensional data encoding device then arithmetically encodesthe prediction mode value representing the set prediction mode (S9745).Specifically, the three-dimensional data encoding device arithmeticallyencodes the prediction mode value by performing steps S9701 and S9702described above with reference to FIG. 65. Note that thethree-dimensional data encoding device may arithmetically encodeprediction mode pred_mode after binarizing the prediction mode with atruncated unary code using the number of prediction modes to which apredicted value is assigned. That is, the three-dimensional dataencoding device may arithmetically encode the prediction mode value byperforming steps S9721 to S9723 described above with reference to FIG.69. The three-dimensional data encoding device calculates a predictedvalue in the prediction mode determined in step S9743 or the predictionmode set in step S9745, and outputs the calculated predicted value(S9746). When using the prediction mode value determined in step S9743,the three-dimensional data encoding device calculates the predictedvalue in the prediction mode represented by the prediction mode value of“2” by linear prediction based on the geometry information of Nperipheral three-dimensional points.

As shown in FIG. 72, the three-dimensional data decoding device firstcalculates distance d0 between point p1 and point p0 and distance d1between point p2 and point p1, and calculates absolute difference valuedistdiff=|d0−d1| (S9751).

The three-dimensional data decoding device then determines whetherabsolute difference value distdiff is less than threshold Thfix or not(S9752). Note that threshold Thfix may be set by decoding the header orthe like of the stream.

When absolute difference value distdiff is less than threshold Thfix (ifYes in S9752), the three-dimensional data decoding device determines theprediction mode value to be “2” (S9753).

On the other hand, when absolute difference value distdiff is greaterthan or equal to threshold Thfix (if No in S9752), the three-dimensionaldata decoding device decodes the prediction mode value from thebitstream (S9754).

The three-dimensional data decoding device calculates a predicted valuein the prediction mode represented by the prediction mode valuedetermined in step S9753 or the prediction mode value decoded in stepS9754, and outputs the calculated predicted value (S9755). When usingthe prediction mode value determined in step S9753, thethree-dimensional data decoding device calculates the predicted value inthe prediction mode represented by the prediction mode value of “2” bylinear prediction based on the geometry information of N peripheralthree-dimensional points.

FIG. 73 is a diagram illustrating an example of a syntax of a header ofgeometry information. NumNeighborPoint, NumPredMode, Thfix, QP, andunique_point_per_leaf in the syntax in FIG. 73 will be sequentiallydescribed. NumNeighborPoint denotes an upper limit of the number ofperipheral points used for generation of a predicted value of geometryinformation of a three-dimensional point. When number M of peripheralpoints is less than NumNeighborPoint (M<NumNeighborPoint), a predictedvalue may be calculated using the M peripheral points in the predictedvalue calculation process.

NumPredMode denotes total number M of prediction modes used forprediction of geometry information. Note that maximum possible valueMaxM of the prediction mode count may be defined by a standard or thelike. The three-dimensional data encoding device may add the value of(MaxM−M) (0<M<=MaxM) to the header as NumPredMode, and binarize andencode (MaxM−1) with a truncated unary code. Prediction mode countNumPredMode need not be added to the bitstream, and the value ofNumPredMode may be defined by profile or level of a standard or thelike. The prediction mode count may be defined asNumNeighborPoint+NumPredMode.

Thfix is a threshold for determining whether to fix the prediction modeor not. Distance d0 between point p1 and point p0 and distance d1between point p2 and point p1 used for prediction are calculated, andthe prediction mode is fixed to be α if absolute difference valuedistdiff=|d0−d1| is less than threshold Thfix[i]. α is a prediction modefor calculating a predicted value based on a linear prediction, and is“2” in the embodiment described here. Note that Thfix need not be addedto the bitstream, and the value may be defined by profile or level of astandard or the like.

QP denotes a quantization parameter used for quantizing geometryinformation. The three-dimensional data encoding device may calculate aquantization step from the quantization parameter, and quantize geometryinformation using the calculated quantization step.

unique_point_per_leaf is information that indicates whether a duplicatedpoint (a point having the same geometry information as another point) isincluded in the bitstream or not. When unique_point_per_leaf=1, it showsthat there are no duplicated points in the bitstream. Whenunique_point_per_leaf=0, it shows that there is one or more duplicatedpoints in the bitstream.

Note that although the determination of whether to fix the predictionmode or not has been described as being performed using the absolutedifference value between distance d0 and distance d1 in this embodiment,the present invention is not limited to this, and the determination maybe made in any manner. For example, the determination may be performedby calculating distance d0 between point p1 and point p0. Specifically,it may be determined that point p1 cannot be used for prediction and theprediction mode value may be fixed at “1” (a predicted value of p0) whendistance d0 is greater than a threshold, and a prediction mode may beset otherwise. In this way, the encoding efficiency can be improvedwhile reducing the overhead.

NumNeighborPoint, NumPredMode, Thfix, and unique_point_per_leafdescribed above may be entropy-encoded and added to the header. Forexample, these values may be binarized and arithmetically encoded. Thesevalues may be encoded with a fixed length, in order to reduce theprocessing amount.

FIG. 74 is a diagram illustrating an example of a syntax of geometryinformation. NumOfPoint, child_count, pred_mode, and residual_value[j]in the syntax in FIG. 74 will be sequentially described.

NumOfPoint denotes the total number of three-dimensional points includedin a bitstream.

child_count denotes the number of child nodes of an i-ththree-dimensional point (node[i]).

pred_mode denotes a prediction mode for encoding or decoding geometryinformation of the i-th three-dimensional point. pred_mode assumes avalue from 0 to M−1 (M denotes the total number of prediction modes).When pred_mode is not in the bitstream (when the condition thatdistdiff>=Thfix[i] && NumPredMode>1 is not satisfied), pred_mode may beestimated to be fixed value α. α is a prediction mode for calculating apredicted value based on a linear prediction, and is “2” in theembodiment described here. Note that α is not limited to “2”, and anyvalue of 0 to M−1 may be set as an estimated value. An estimated valuein the case where pred_mode is not in the bitstream may be additionallyadded to the header or the like. pred_mode may be binarized andarithmetically encoded with a truncated unary code using the number ofprediction modes to which a predicted value is assigned.

Note that when NumPredMode=1, that is, when the prediction mode count is1, the three-dimensional data encoding device need not encode aprediction mode value representing a prediction mode and may generate abitstream that includes no prediction mode value. When thethree-dimensional data decoding device obtains a bitstream that includesno prediction mode value, the three-dimensional data decoding device maycalculate a predicted value of a particular prediction mode in thepredicted value calculation. The particular prediction mode is apreviously determined prediction mode.

residual_value[j] denotes encoded data of a prediction residual betweengeometry information and a predicted value thereof. residual_value[0]may represent element x of the geometry information, residual_value[1]may represent element y of the geometry information, andresidual_value[2] may represent element z of the geometry information.

FIG. 75 is a diagram illustrating another example of the syntax ofgeometry information. The example in FIG. 75 is a modification of theexample in FIG. 74.

As shown in FIG. 75, pred_mode may denote a prediction mode for each ofthree elements of geometry information (x, y, z). That is, pred_mode[0]denotes a prediction mode for element x, pred_mode[1] denotes aprediction mode for element y, and pred_mode[2] denotes a predictionmode for element z. pred_mode[0], pred_mode[1], and pred_mode[2] may beadded to the bitstream.

Embodiment 5

FIG. 76 is a diagram illustrating an example of a prediction tree usedin a three-dimensional data encoding method according to Embodiment 5.

In Embodiment 5, unlike Embodiment 4, the depth of each node may becalculated when generating a prediction tree in the prediction treegeneration method.

For example, the root of the prediction tree may be set at a depth=0,the child nodes of the root are set at a depth=1, and the child nodes ofthe child nodes may be set at a depth=2. Here, a possible value ofpred_mode may be changed according to the value of the depth. That is,in setting the prediction mode, the three-dimensional data encodingdevice may set a prediction mode for predicting each three-dimensionalpoint based on the depth of the three-dimensional point in thehierarchical structure. For example, pred_mode may be limited to a valuesmaller than or equal to the value of the depth. That is, the predictionmode value may be set to be a value smaller than or equal to the valueof the depth of each three-dimensional point in the hierarchicalstructure.

When pred_mode is binarized and arithmetically encoded with a truncatedunary code according to the prediction mode count, pred_mode may bebinarized with a truncated unary code using the prediction modecount=min (depth, prediction mode count M). In this way, the bit lengthof the binary data of pred_mode in the case where depth<M can bereduced, and the encoding efficiency can be improved.

An example has been shown where, in the prediction tree generationmethod, when three-dimensional point A is added to the prediction tree,nearest point B thereof is searched for, and three-dimensional point Ais added to the child nodes of three-dimensional point B. Here, as themethod of searching for the nearest point, any method can be used. Forexample, the kd-tree method can be used to search for the nearest point.In that case, the nearest point can be efficiently searched for, and theencoding efficiency can be improved.

Alternatively, the nearest neighbor method may be used to search for thenearest point. In that case, the nearest point can be searched for whilereducing the processing load, and the processing amount and the encodingefficiency can be balanced. When searching for the nearest point in thenearest neighbor method, a search range may be set. In that case, theprocessing amount can be reduced.

The three-dimensional data encoding device may quantize and encodeprediction residual residual_value. For example, the three-dimensionaldata encoding device may add quantization parameter QP to the header ofa slice or the like, quantize residual_value using Qstep calculated fromQP, and binarize and arithmetically encode the quantized value. In thatcase, the three-dimensional data decoding device may decode the geometryinformation by applying an inverse quantization to the quantized valueof residual_value using the same Qstep and adding the result to thepredicted value. In that case, the decoded geometry information may beadded to the prediction tree. In this way, even when the quantization isapplied, the three-dimensional data encoding device or thethree-dimensional data decoding device can calculate the predicted valuefrom the decoded geometry information, so that the three-dimensionaldata encoding device can generate a bitstream that can be properlydecoded by the three-dimensional data decoding device. Note thatalthough an example has been shown where the nearest point of athree-dimensional point is searched for and added to the prediction treewhen generating the prediction tree, the present invention is notnecessarily limited to this, and the prediction tree can be generated inany method or in any order. For example, when the inputthree-dimensional points are data obtained by lidar, the prediction treemay be generated by adding the three-dimensional points in the order ofscanning of lidar. In that case, the prediction precision can beimproved, and the encoding efficiency can be improved.

FIG. 77 is a diagram illustrating another example of the syntax ofgeometry information. residual_is_zero, residual_sign,residual_bitcount_minus1, and residual_bit[k] in the syntax in FIG. 77will be sequentially described.

residual_is_zero is information that indicates whether residual_value is0 or not. For example, when residual_is_zero=1, it shows thatresidual_value is 0, and when residual_is_zero=0, it shows thatresidual_value is not 0. Note that when pred_mode=0 (without prediction,and the predicted value being 0), the possibility that residual_value is0 is low, so that residual_is_zero need not be encoded and added to thebitstream. When pred_mode=0, the three-dimensional data decoding deviceneed not decode residual_is_zero from the bitstream, and may estimatethat residual_is_zero=0.

residual_sign is sign information (sign bit) that indicates whetherresidual_value is positive or negative. For example, whenresidual_sign=1, it shows that residual_value is negative, and whenresidual_sign=0, it shows that residual_value is positive.

Note that when pred_mode=0, the predicted value is 0, and therefore,residual_value is always positive or 0. Therefore, the three-dimensionaldata encoding device need not encode residual_sign and add residual_signto the bitstream. That is, when a prediction mode in which the predictedvalue is calculated to be 0 is set, the three-dimensional data encodingdevice need not encode the sign information that indicates whether theprediction residual is positive or negative and may generate a bitstreamincluding no sign information. When pred_mode=0, the three-dimensionaldata decoding device need not decode residual_sign from the bitstream,and may estimate that residual_sign=0. That is, when thethree-dimensional data decoding device obtains a bitstream including nosign information that indicates whether the prediction residual ispositive or negative, the three-dimensional data decoding device canregard the prediction residual as 0 or a positive value.

residual_bitcount_minus1 indicates a number obtained by subtracting 1from the bit count of residual_bit. That is, residual_bitcount is equalto a number obtained by adding 1 to residual_bitcount_minus1.

residual_bit[k] denotes k-th bit information in the case where theabsolute value of residual_value is binarized with a fixed length inaccordance with the value of residual_bitcount.

Note that when condition A is defined as “unique_point_per_leaf=1 (thereis no duplicated point) when geometry information of any one of pointp0, point p1, and point p2 is directly used as a predicted value as inprediction mode 1”, all of residual_is_zero[0] for element x,residual_is_zero[1] for element y, and residual_is_zero[2] for element zare not 0 at the same time, and therefore, residual_is_zero for any oneelement need not be added to the bitstream.

For example, when condition A is true, and residual_is_zero[0] andresidual_is_zero[1] are 0, the three-dimensional data encoding deviceneed not add residual_is_zero[2] to the bitstream. In that case, thethree-dimensional data decoding device may estimate thatresidual_is_zero[2], which has not been added to the bitstream, is 1.

Embodiment 6

The following describes the structure of three-dimensional data creationdevice 810 according to the present embodiment. FIG. 78 is a blockdiagram of an exemplary structure of three-dimensional data creationdevice 810 according to the present embodiment. Such three-dimensionaldata creation device 810 is equipped, for example, in a vehicle.Three-dimensional data creation device 810 transmits and receivesthree-dimensional data to and from an external cloud-based trafficmonitoring system, a preceding vehicle, or a following vehicle, andcreates and stores three-dimensional data.

Three-dimensional data creation device 810 includes data receiver 811,communication unit 812, reception controller 813, format converter 814,a plurality of sensors 815, three-dimensional data creator 816,three-dimensional data synthesizer 817, three-dimensional data storage818, communication unit 819, transmission controller 820, formatconverter 821, and data transmitter 822.

Data receiver 811 receives three-dimensional data 831 from a cloud-basedtraffic monitoring system or a preceding vehicle. Three-dimensional data831 includes, for example, information on a region undetectable bysensors 815 of the own vehicle, such as a point cloud, visible lightvideo, depth information, sensor position information, and speedinformation.

Communication unit 812 communicates with the cloud-based trafficmonitoring system or the preceding vehicle to transmit a datatransmission request, etc. to the cloud-based traffic monitoring systemor the preceding vehicle.

Reception controller 813 exchanges information, such as information onsupported formats, with a communications partner via communication unit812 to establish communication with the communications partner.

Format converter 814 applies format conversion, etc. onthree-dimensional data 831 received by data receiver 811 to generatethree-dimensional data 832. Format converter 814 also decompresses ordecodes three-dimensional data 831 when three-dimensional data 831 iscompressed or encoded.

A plurality of sensors 815 are a group of sensors, such as visible lightcameras and infrared cameras, that obtain information on the outside ofthe vehicle and generate sensor information 833. Sensor information 833is, for example, three-dimensional data such as a point cloud (pointgroup data), when sensors 815 are laser sensors such as LiDARs. Notethat a single sensor may serve as a plurality of sensors 815.

Three-dimensional data creator 816 generates three-dimensional data 834from sensor information 833. Three-dimensional data 834 includes, forexample, information such as a point cloud, visible light video, depthinformation, sensor position information, and speed information.

Three-dimensional data synthesizer 817 synthesizes three-dimensionaldata 834 created on the basis of sensor information 833 of the ownvehicle with three-dimensional data 832 created by the cloud-basedtraffic monitoring system or the preceding vehicle, etc., therebyforming three-dimensional data 835 of a space that includes the spaceahead of the preceding vehicle undetectable by sensors 815 of the ownvehicle.

Three-dimensional data storage 818 stores generated three-dimensionaldata 835, etc.

Communication unit 819 communicates with the cloud-based trafficmonitoring system or the following vehicle to transmit a datatransmission request, etc. to the cloud-based traffic monitoring systemor the following vehicle.

Transmission controller 820 exchanges information such as information onsupported formats with a communications partner via communication unit819 to establish communication with the communications partner.Transmission controller 820 also determines a transmission region, whichis a space of the three-dimensional data to be transmitted, on the basisof three-dimensional data formation information on three-dimensionaldata 832 generated by three-dimensional data synthesizer 817 and thedata transmission request from the communications partner.

More specifically, transmission controller 820 determines a transmissionregion that includes the space ahead of the own vehicle undetectable bya sensor of the following vehicle, in response to the data transmissionrequest from the cloud-based traffic monitoring system or the followingvehicle. Transmission controller 820 judges, for example, whether aspace is transmittable or whether the already transmitted space includesan update, on the basis of the three-dimensional data formationinformation to determine a transmission region. For example,transmission controller 820 determines, as a transmission region, aregion that is: a region specified by the data transmission request; anda region, corresponding three-dimensional data 835 of which is present.Transmission controller 820 then notifies format converter 821 of theformat supported by the communications partner and the transmissionregion.

Of three-dimensional data 835 stored in three-dimensional data storage818, format converter 821 converts three-dimensional data 836 of thetransmission region into the format supported by the receiver end togenerate three-dimensional data 837. Note that format converter 821 maycompress or encode three-dimensional data 837 to reduce the data amount.

Data transmitter 822 transmits three-dimensional data 837 to thecloud-based traffic monitoring system or the following vehicle. Suchthree-dimensional data 837 includes, for example, information on a blindspot, which is a region hidden from view of the following vehicle, suchas a point cloud ahead of the own vehicle, visible light video, depthinformation, and sensor position information.

Note that an example has been described in which format converter 814and format converter 821 perform format conversion, etc., but formatconversion may not be performed.

With the above structure, three-dimensional data creation device 810obtains, from an external device, three-dimensional data 831 of a regionundetectable by sensors 815 of the own vehicle, and synthesizesthree-dimensional data 831 with three-dimensional data 834 that is basedon sensor information 833 detected by sensors 815 of the own vehicle,thereby generating three-dimensional data 835. Three-dimensional datacreation device 810 is thus capable of generating three-dimensional dataof a range undetectable by sensors 815 of the own vehicle.

Three-dimensional data creation device 810 is also capable oftransmitting, to the cloud-based traffic monitoring system or thefollowing vehicle, etc., three-dimensional data of a space that includesthe space ahead of the own vehicle undetectable by a sensor of thefollowing vehicle, in response to the data transmission request from thecloud-based traffic monitoring system or the following vehicle.

The following describes the steps performed by three-dimensional datacreation device 810 of transmitting three-dimensional data to afollowing vehicle. FIG. 79 is a flowchart showing exemplary stepsperformed by three-dimensional data creation device 810 of transmittingthree-dimensional data to a cloud-based traffic monitoring system or afollowing vehicle.

First, three-dimensional data creation device 810 generates and updatesthree-dimensional data 835 of a space that includes space on the roadahead of the own vehicle (S801). More specifically, three-dimensionaldata creation device 810 synthesizes three-dimensional data 834 createdon the basis of sensor information 833 of the own vehicle withthree-dimensional data 831 created by the cloud-based traffic monitoringsystem or the preceding vehicle, etc., for example, thereby formingthree-dimensional data 835 of a space that also includes the space aheadof the preceding vehicle undetectable by sensors 815 of the own vehicle.

Three-dimensional data creation device 810 then judges whether anychange has occurred in three-dimensional data 835 of the space includedin the space already transmitted (S802).

When a change has occurred in three-dimensional data 835 of the spaceincluded in the space already transmitted due to, for example, a vehicleor a person entering such space from outside (Yes in S802),three-dimensional data creation device 810 transmits, to the cloud-basedtraffic monitoring system or the following vehicle, thethree-dimensional data that includes three-dimensional data 835 of thespace in which the change has occurred (S803).

Three-dimensional data creation device 810 may transmitthree-dimensional data in which a change has occurred, at the sametiming of transmitting three-dimensional data that is transmitted at apredetermined time interval, or may transmit three-dimensional data inwhich a change has occurred soon after the detection of such change.Stated differently, three-dimensional data creation device 810 mayprioritize the transmission of three-dimensional data of the space inwhich a change has occurred to the transmission of three-dimensionaldata that is transmitted at a predetermined time interval.

Also, three-dimensional data creation device 810 may transmit, asthree-dimensional data of a space in which a change has occurred, thewhole three-dimensional data of the space in which such change hasoccurred, or may transmit only a difference in the three-dimensionaldata (e.g., information on three-dimensional points that have appearedor vanished, or information on the displacement of three-dimensionalpoints).

Three-dimensional data creation device 810 may also transmit, to thefollowing vehicle, meta-data on a risk avoidance behavior of the ownvehicle such as hard breaking warning, before transmittingthree-dimensional data of the space in which a change has occurred. Thisenables the following vehicle to recognize at an early stage that thepreceding vehicle is to perform hard braking, etc., and thus to startperforming a risk avoidance behavior at an early stage such as speedreduction.

When no change has occurred in three-dimensional data 835 of the spaceincluded in the space already transmitted (No in S802), or after stepS803, three-dimensional data creation device 810 transmits, to thecloud-based traffic monitoring system or the following vehicle,three-dimensional data of the space included in the space having apredetermined shape and located ahead of the own vehicle by distance L(S804).

The processes of step S801 through step S804 are repeated, for exampleat a predetermined time interval.

When three-dimensional data 835 of the current space to be transmittedincludes no difference from the three-dimensional map, three-dimensionaldata creation device 810 may not transmit three-dimensional data 837 ofthe space.

In the present embodiment, a client device transmits sensor informationobtained through a sensor to a server or another client device.

A structure of a system according to the present embodiment will firstbe described. FIG. 80 is a diagram showing the structure of atransmission/reception system of a three-dimensional map and sensorinformation according to the present embodiment. This system includesserver 901, and client devices 902A and 902B. Note that client devices902A and 902B are also referred to as client device 902 when noparticular distinction is made therebetween.

Client device 902 is, for example, a vehicle-mounted device equipped ina mobile object such as a vehicle. Server 901 is, for example, acloud-based traffic monitoring system, and is capable of communicatingwith the plurality of client devices 902.

Server 901 transmits the three-dimensional map formed by a point cloudto client device 902. Note that a structure of the three-dimensional mapis not limited to a point cloud, and may also be another structureexpressing three-dimensional data such as a mesh structure.

Client device 902 transmits the sensor information obtained by clientdevice 902 to server 901. The sensor information includes, for example,at least one of information obtained by LiDAR, a visible light image, aninfrared image, a depth image, sensor position information, or sensorspeed information.

The data to be transmitted and received between server 901 and clientdevice 902 may be compressed in order to reduce data volume, and mayalso be transmitted uncompressed in order to maintain data precision.When compressing the data, it is possible to use a three-dimensionalcompression method on the point cloud based on, for example, an octreestructure. It is possible to use a two-dimensional image compressionmethod on the visible light image, the infrared image, and the depthimage. The two-dimensional image compression method is, for example,MPEG-4 AVC or HEVC standardized by MPEG.

Server 901 transmits the three-dimensional map managed by server 901 toclient device 902 in response to a transmission request for thethree-dimensional map from client device 902. Note that server 901 mayalso transmit the three-dimensional map without waiting for thetransmission request for the three-dimensional map from client device902. For example, server 901 may broadcast the three-dimensional map toat least one client device 902 located in a predetermined space. Server901 may also transmit the three-dimensional map suited to a position ofclient device 902 at fixed time intervals to client device 902 that hasreceived the transmission request once. Server 901 may also transmit thethree-dimensional map managed by server 901 to client device 902 everytime the three-dimensional map is updated.

Client device 902 sends the transmission request for thethree-dimensional map to server 901. For example, when client device 902wants to perform the self-location estimation during traveling, clientdevice 902 transmits the transmission request for the three-dimensionalmap to server 901.

Note that in the following cases, client device 902 may send thetransmission request for the three-dimensional map to server 901. Clientdevice 902 may send the transmission request for the three-dimensionalmap to server 901 when the three-dimensional map stored by client device902 is old. For example, client device 902 may send the transmissionrequest for the three-dimensional map to server 901 when a fixed periodhas passed since the three-dimensional map is obtained by client device902.

Client device 902 may also send the transmission request for thethree-dimensional map to server 901 before a fixed time when clientdevice 902 exits a space shown in the three-dimensional map stored byclient device 902. For example, client device 902 may send thetransmission request for the three-dimensional map to server 901 whenclient device 902 is located within a predetermined distance from aboundary of the space shown in the three-dimensional map stored byclient device 902. When a movement path and a movement speed of clientdevice 902 are understood, a time when client device 902 exits the spaceshown in the three-dimensional map stored by client device 902 may bepredicted based on the movement path and the movement speed of clientdevice 902.

Client device 902 may also send the transmission request for thethree-dimensional map to server 901 when an error during alignment ofthe three-dimensional data and the three-dimensional map created fromthe sensor information by client device 902 is at least at a fixedlevel.

Client device 902 transmits the sensor information to server 901 inresponse to a transmission request for the sensor information fromserver 901. Note that client device 902 may transmit the sensorinformation to server 901 without waiting for the transmission requestfor the sensor information from server 901. For example, client device902 may periodically transmit the sensor information during a fixedperiod when client device 902 has received the transmission request forthe sensor information from server 901 once. Client device 902 maydetermine that there is a possibility of a change in thethree-dimensional map of a surrounding area of client device 902 havingoccurred, and transmit this information and the sensor information toserver 901, when the error during alignment of the three-dimensionaldata created by client device 902 based on the sensor information andthe three-dimensional map obtained from server 901 is at least at thefixed level.

Server 901 sends a transmission request for the sensor information toclient device 902. For example, server 901 receives positioninformation, such as GPS information, about client device 902 fromclient device 902. Server 901 sends the transmission request for thesensor information to client device 902 in order to generate a newthree-dimensional map, when it is determined that client device 902 isapproaching a space in which the three-dimensional map managed by server901 contains little information, based on the position information aboutclient device 902. Server 901 may also send the transmission request forthe sensor information, when wanting to (i) update the three-dimensionalmap, (ii) check road conditions during snowfall, a disaster, or thelike, or (iii) check traffic congestion conditions, accident/incidentconditions, or the like.

Client device 902 may set an amount of data of the sensor information tobe transmitted to server 901 in accordance with communication conditionsor bandwidth during reception of the transmission request for the sensorinformation to be received from server 901. Setting the amount of dataof the sensor information to be transmitted to server 901 is, forexample, increasing/reducing the data itself or appropriately selectinga compression method.

FIG. 81 is a block diagram showing an example structure of client device902. Client device 902 receives the three-dimensional map formed by apoint cloud and the like from server 901, and estimates a self-locationof client device 902 using the three-dimensional map created based onthe sensor information of client device 902. Client device 902 transmitsthe obtained sensor information to server 901.

Client device 902 includes data receiver 1011, communication unit 1012,reception controller 1013, format converter 1014, sensors 1015,three-dimensional data creator 1016, three-dimensional image processor1017, three-dimensional data storage 1018, format converter 1019,communication unit 1020, transmission controller 1021, and datatransmitter 1022.

Data receiver 1011 receives three-dimensional map 1031 from server 901.Three-dimensional map 1031 is data that includes a point cloud such as aWLD or a SWLD. Three-dimensional map 1031 may include compressed data oruncompressed data.

Communication unit 1012 communicates with server 901 and transmits adata transmission request (e.g., transmission request forthree-dimensional map) to server 901.

Reception controller 1013 exchanges information, such as information onsupported formats, with a communications partner via communication unit1012 to establish communication with the communications partner.

Format converter 1014 performs a format conversion and the like onthree-dimensional map 1031 received by data receiver 1011 to generatethree-dimensional map 1032. Format converter 1014 also performs adecompression or decoding process when three-dimensional map 1031 iscompressed or encoded. Note that format converter 1014 does not performthe decompression or decoding process when three-dimensional map 1031 isuncompressed data.

Sensors 1015 are a group of sensors, such as LiDARs, visible lightcameras, infrared cameras, or depth sensors that obtain informationabout the outside of a vehicle equipped with client device 902, andgenerate sensor information 1033. Sensor information 1033 is, forexample, three-dimensional data such as a point cloud (point group data)when sensors 1015 are laser sensors such as LiDARs. Note that a singlesensor may serve as sensors 1015.

Three-dimensional data creator 1016 generates three-dimensional data1034 of a surrounding area of the own vehicle based on sensorinformation 1033. For example, three-dimensional data creator 1016generates point cloud data with color information on the surroundingarea of the own vehicle using information obtained by LiDAR and visiblelight video obtained by a visible light camera.

Three-dimensional image processor 1017 performs a self-locationestimation process and the like of the own vehicle, using (i) thereceived three-dimensional map 1032 such as a point cloud, and (ii)three-dimensional data 1034 of the surrounding area of the own vehiclegenerated using sensor information 1033. Note that three-dimensionalimage processor 1017 may generate three-dimensional data 1035 about thesurroundings of the own vehicle by merging three-dimensional map 1032and three-dimensional data 1034, and may perform the self-locationestimation process using the created three-dimensional data 1035.

Three-dimensional data storage 1018 stores three-dimensional map 1032,three-dimensional data 1034, three-dimensional data 1035, and the like.

Format converter 1019 generates sensor information 1037 by convertingsensor information 1033 to a format supported by a receiver end. Notethat format converter 1019 may reduce the amount of data by compressingor encoding sensor information 1037. Format converter 1019 may omit thisprocess when format conversion is not necessary. Format converter 1019may also control the amount of data to be transmitted in accordance witha specified transmission range.

Communication unit 1020 communicates with server 901 and receives a datatransmission request (transmission request for sensor information) andthe like from server 901.

Transmission controller 1021 exchanges information, such as informationon supported formats, with a communications partner via communicationunit 1020 to establish communication with the communications partner.

Data transmitter 1022 transmits sensor information 1037 to server 901.Sensor information 1037 includes, for example, information obtainedthrough sensors 1015, such as information obtained by LiDAR, a luminanceimage obtained by a visible light camera, an infrared image obtained byan infrared camera, a depth image obtained by a depth sensor, sensorposition information, and sensor speed information.

A structure of server 901 will be described next. FIG. 82 is a blockdiagram showing an example structure of server 901. Server 901 transmitssensor information from client device 902 and creates three-dimensionaldata based on the received sensor information. Server 901 updates thethree-dimensional map managed by server 901 using the createdthree-dimensional data. Server 901 transmits the updatedthree-dimensional map to client device 902 in response to a transmissionrequest for the three-dimensional map from client device 902.

Server 901 includes data receiver 1111, communication unit 1112,reception controller 1113, format converter 1114, three-dimensional datacreator 1116, three-dimensional data merger 1117, three-dimensional datastorage 1118, format converter 1119, communication unit 1120,transmission controller 1121, and data transmitter 1122.

Data receiver 1111 receives sensor information 1037 from client device902. Sensor information 1037 includes, for example, information obtainedby LiDAR, a luminance image obtained by a visible light camera, aninfrared image obtained by an infrared camera, a depth image obtained bya depth sensor, sensor position information, sensor speed information,and the like.

Communication unit 1112 communicates with client device 902 andtransmits a data transmission request (e.g., transmission request forsensor information) and the like to client device 902.

Reception controller 1113 exchanges information, such as information onsupported formats, with a communications partner via communication unit1112 to establish communication with the communications partner.

Format converter 1114 generates sensor information 1132 by performing adecompression or decoding process when received sensor information 1037is compressed or encoded. Note that format converter 1114 does notperform the decompression or decoding process when sensor information1037 is uncompressed data.

Three-dimensional data creator 1116 generates three-dimensional data1134 of a surrounding area of client device 902 based on sensorinformation 1132. For example, three-dimensional data creator 1116generates point cloud data with color information on the surroundingarea of client device 902 using information obtained by LiDAR andvisible light video obtained by a visible light camera.

Three-dimensional data merger 1117 updates three-dimensional map 1135 bymerging three-dimensional data 1134 created based on sensor information1132 with three-dimensional map 1135 managed by server 901.

Three-dimensional data storage 1118 stores three-dimensional map 1135and the like.

Format converter 1119 generates three-dimensional map 1031 by convertingthree-dimensional map 1135 to a format supported by the receiver end.Note that format converter 1119 may reduce the amount of data bycompressing or encoding three-dimensional map 1135. Format converter1119 may omit this process when format conversion is not necessary.Format converter 1119 may also control the amount of data to betransmitted in accordance with a specified transmission range.

Communication unit 1120 communicates with client device 902 and receivesa data transmission request (transmission request for three-dimensionalmap) and the like from client device 902.

Transmission controller 1121 exchanges information, such as informationon supported formats, with a communications partner via communicationunit 1120 to establish communication with the communications partner.

Data transmitter 1122 transmits three-dimensional map 1031 to clientdevice 902. Three-dimensional map 1031 is data that includes a pointcloud such as a WLD or a SWLD. Three-dimensional map 1031 may includeone of compressed data and uncompressed data.

An operational flow of client device 902 will be described next. FIG. 83is a flowchart of an operation when client device 902 obtains thethree-dimensional map.

Client device 902 first requests server 901 to transmit thethree-dimensional map (point cloud, etc.) (S1001). At this point, byalso transmitting the position information about client device 902obtained through GPS and the like, client device 902 may also requestserver 901 to transmit a three-dimensional map relating to this positioninformation.

Client device 902 next receives the three-dimensional map from server901 (S1002). When the received three-dimensional map is compressed data,client device 902 decodes the received three-dimensional map andgenerates an uncompressed three-dimensional map (S1003).

Client device 902 next creates three-dimensional data 1034 of thesurrounding area of client device 902 using sensor information 1033obtained by sensors 1015 (S1004). Client device 902 next estimates theself-location of client device 902 using three-dimensional map 1032received from server 901 and three-dimensional data 1034 created usingsensor information 1033 (S1005).

FIG. 84 is a flowchart of an operation when client device 902 transmitsthe sensor information. Client device 902 first receives a transmissionrequest for the sensor information from server 901 (S1011). Clientdevice 902 that has received the transmission request transmits sensorinformation 1037 to server 901 (S1012). Note that client device 902 maygenerate sensor information 1037 by compressing each piece ofinformation using a compression method suited to each piece ofinformation, when sensor information 1033 includes a plurality of piecesof information obtained by sensors 1015.

An operational flow of server 901 will be described next. FIG. 85 is aflowchart of an operation when server 901 obtains the sensorinformation. Server 901 first requests client device 902 to transmit thesensor information (S1021). Server 901 next receives sensor information1037 transmitted from client device 902 in accordance with the request(S1022). Server 901 next creates three-dimensional data 1134 using thereceived sensor information 1037 (S1023). Server 901 next reflects thecreated three-dimensional data 1134 in three-dimensional map 1135(S1024).

FIG. 86 is a flowchart of an operation when server 901 transmits thethree-dimensional map. Server 901 first receives a transmission requestfor the three-dimensional map from client device 902 (S1031). Server 901that has received the transmission request for the three-dimensional maptransmits the three-dimensional map to client device 902 (S1032). Atthis point, server 901 may extract a three-dimensional map of a vicinityof client device 902 along with the position information about clientdevice 902, and transmit the extracted three-dimensional map. Server 901may compress the three-dimensional map formed by a point cloud using,for example, an octree structure compression method, and transmit thecompressed three-dimensional map.

The following describes variations of the present embodiment.

Server 901 creates three-dimensional data 1134 of a vicinity of aposition of client device 902 using sensor information 1037 receivedfrom client device 902. Server 901 next calculates a difference betweenthree-dimensional data 1134 and three-dimensional map 1135, by matchingthe created three-dimensional data 1134 with three-dimensional map 1135of the same area managed by server 901. Server 901 determines that atype of anomaly has occurred in the surrounding area of client device902, when the difference is greater than or equal to a predeterminedthreshold. For example, it is conceivable that a large difference occursbetween three-dimensional map 1135 managed by server 901 andthree-dimensional data 1134 created based on sensor information 1037,when land subsidence and the like occurs due to a natural disaster suchas an earthquake.

Sensor information 1037 may include information indicating at least oneof a sensor type, a sensor performance, and a sensor model number.Sensor information 1037 may also be appended with a class ID and thelike in accordance with the sensor performance. For example, when sensorinformation 1037 is obtained by LiDAR, it is conceivable to assignidentifiers to the sensor performance. A sensor capable of obtaininginformation with precision in units of several millimeters is class 1, asensor capable of obtaining information with precision in units ofseveral centimeters is class 2, and a sensor capable of obtaininginformation with precision in units of several meters is class 3. Server901 may estimate sensor performance information and the like from amodel number of client device 902. For example, when client device 902is equipped in a vehicle, server 901 may determine sensor specificationinformation from a type of the vehicle. In this case, server 901 mayobtain information on the type of the vehicle in advance, and theinformation may also be included in the sensor information. Server 901may change a degree of correction with respect to three-dimensional data1134 created using sensor information 1037, using obtained sensorinformation 1037. For example, when the sensor performance is high inprecision (class 1), server 901 does not correct three-dimensional data1134. When the sensor performance is low in precision (class 3), server901 corrects three-dimensional data 1134 in accordance with theprecision of the sensor. For example, server 901 increases the degree(intensity) of correction with a decrease in the precision of thesensor. Server 901 may simultaneously send the transmission request forthe sensor information to the plurality of client devices 902 in acertain space. Server 901 does not need to use all of the sensorinformation for creating three-dimensional data 1134 and may, forexample, select sensor information to be used in accordance with thesensor performance, when having received a plurality of pieces of sensorinformation from the plurality of client devices 902. For example, whenupdating three-dimensional map 1135, server 901 may selecthigh-precision sensor information (class 1) from among the receivedplurality of pieces of sensor information, and create three-dimensionaldata 1134 using the selected sensor information.

Server 901 is not limited to only being a server such as a cloud-basedtraffic monitoring system, and may also be another (vehicle-mounted)client device. FIG. 87 is a diagram of a system structure in this case.

For example, client device 902C sends a transmission request for sensorinformation to client device 902A located nearby, and obtains the sensorinformation from client device 902A. Client device 902C then createsthree-dimensional data using the obtained sensor information of clientdevice 902A, and updates a three-dimensional map of client device 902C.This enables client device 902C to generate a three-dimensional map of aspace that can be obtained from client device 902A, and fully utilizethe performance of client device 902C. For example, such a case isconceivable when client device 902C has high performance.

In this case, client device 902A that has provided the sensorinformation is given rights to obtain the high-precisionthree-dimensional map generated by client device 902C. Client device902A receives the high-precision three-dimensional map from clientdevice 902C in accordance with these rights.

Server 901 may send the transmission request for the sensor informationto the plurality of client devices 902 (client device 902A and clientdevice 902B) located nearby client device 902C. When a sensor of clientdevice 902A or client device 902B has high performance, client device902C is capable of creating the three-dimensional data using the sensorinformation obtained by this high-performance sensor.

FIG. 88 is a block diagram showing a functionality structure of server901 and client device 902. Server 901 includes, for example,three-dimensional map compression/decoding processor 1201 thatcompresses and decodes the three-dimensional map and sensor informationcompression/decoding processor 1202 that compresses and decodes thesensor information.

Client device 902 includes three-dimensional map decoding processor 1211and sensor information compression processor 1212. Three-dimensional mapdecoding processor 1211 receives encoded data of the compressedthree-dimensional map, decodes the encoded data, and obtains thethree-dimensional map. Sensor information compression processor 1212compresses the sensor information itself instead of thethree-dimensional data created using the obtained sensor information,and transmits the encoded data of the compressed sensor information toserver 901. With this structure, client device 902 does not need tointernally store a processor that performs a process for compressing thethree-dimensional data of the three-dimensional map (point cloud, etc.),as long as client device 902 internally stores a processor that performsa process for decoding the three-dimensional map (point cloud, etc.).This makes it possible to limit costs, power consumption, and the likeof client device 902.

As stated above, client device 902 according to the present embodimentis equipped in the mobile object, and creates three-dimensional data1034 of a surrounding area of the mobile object using sensor information1033 that is obtained through sensor 1015 equipped in the mobile objectand indicates a surrounding condition of the mobile object. Clientdevice 902 estimates a self-location of the mobile object using thecreated three-dimensional data 1034. Client device 902 transmitsobtained sensor information 1033 to server 901 or another client device902.

This enables client device 902 to transmit sensor information 1033 toserver 901 or the like. This makes it possible to further reduce theamount of transmission data compared to when transmitting thethree-dimensional data. Since there is no need for client device 902 toperform processes such as compressing or encoding the three-dimensionaldata, it is possible to reduce the processing amount of client device902. As such, client device 902 is capable of reducing the amount ofdata to be transmitted or simplifying the structure of the device.

Client device 902 further transmits the transmission request for thethree-dimensional map to server 901 and receives three-dimensional map1031 from server 901. In the estimating of the self-location, clientdevice 902 estimates the self-location using three-dimensional data 1034and three-dimensional map 1032.

Sensor information 1033 includes at least one of information obtained bya laser sensor, a luminance image, an infrared image, a depth image,sensor position information, or sensor speed information.

Sensor information 1033 includes information that indicates aperformance of the sensor.

Client device 902 encodes or compresses sensor information 1033, and inthe transmitting of the sensor information, transmits sensor information1037 that has been encoded or compressed to server 901 or another clientdevice 902. This enables client device 902 to reduce the amount of datato be transmitted.

For example, client device 902 includes a processor and memory. Theprocessor performs the above processes using the memory.

Server 901 according to the present embodiment is capable ofcommunicating with client device 902 equipped in the mobile object, andreceives sensor information 1037 that is obtained through sensor 1015equipped in the mobile object and indicates a surrounding condition ofthe mobile object. Server 901 creates three-dimensional data 1134 of asurrounding area of the mobile object using received sensor information1037.

With this, server 901 creates three-dimensional data 1134 using sensorinformation 1037 transmitted from client device 902. This makes itpossible to further reduce the amount of transmission data compared towhen client device 902 transmits the three-dimensional data. Since thereis no need for client device 902 to perform processes such ascompressing or encoding the three-dimensional data, it is possible toreduce the processing amount of client device 902. As such, server 901is capable of reducing the amount of data to be transmitted orsimplifying the structure of the device.

Server 901 further transmits a transmission request for the sensorinformation to client device 902.

Server 901 further updates three-dimensional map 1135 using the createdthree-dimensional data 1134, and transmits three-dimensional map 1135 toclient device 902 in response to the transmission request forthree-dimensional map 1135 from client device 902.

Sensor information 1037 includes at least one of information obtained bya laser sensor, a luminance image, an infrared image, a depth image,sensor position information, or sensor speed information.

Sensor information 1037 includes information that indicates aperformance of the sensor.

Server 901 further corrects the three-dimensional data in accordancewith the performance of the sensor. This enables the three-dimensionaldata creation method to improve the quality of the three-dimensionaldata.

In the receiving of the sensor information, server 901 receives aplurality of pieces of sensor information 1037 received from a pluralityof client devices 902, and selects sensor information 1037 to be used inthe creating of three-dimensional data 1134, based on a plurality ofpieces of information that each indicates the performance of the sensorincluded in the plurality of pieces of sensor information 1037. Thisenables server 901 to improve the quality of three-dimensional data1134.

Server 901 decodes or decompresses received sensor information 1037, andcreates three-dimensional data 1134 using sensor information 1132 thathas been decoded or decompressed. This enables server 901 to reduce theamount of data to be transmitted.

For example, server 901 includes a processor and memory. The processorperforms the above processes using the memory.

The following will describe a variation of the present embodiment. FIG.89 is a diagram illustrating a configuration of a system according tothe present embodiment. The system illustrated in FIG. 89 includesserver 2001, client device 2002A, and client device 2002B.

Client device 2002A and client device 2002B are each provided in amobile object such as a vehicle, and transmit sensor information toserver 2001. Server 2001 transmits a three-dimensional map (a pointcloud) to client device 2002A and client device 2002B.

Client device 2002A includes sensor information obtainer 2011, storage2012, and data transmission possibility determiner 2013. It should benoted that client device 2002B has the same configuration. Additionally,when client device 2002A and client device 2002B are not particularlydistinguished below, client device 2002A and client device 2002B arealso referred to as client device 2002.

FIG. 90 is a flowchart illustrating operation of client device 2002according to the present embodiment.

Sensor information obtainer 2011 obtains a variety of sensor informationusing sensors (a group of sensors) provided in a mobile object. In otherwords, sensor information obtainer 2011 obtains sensor informationobtained by the sensors (the group of sensors) provided in the mobileobject and indicating a surrounding state of the mobile object. Sensorinformation obtainer 2011 also stores the obtained sensor informationinto storage 2012. This sensor information includes at least one ofinformation obtained by LiDAR, a visible light image, an infrared image,or a depth image. Additionally, the sensor information may include atleast one of sensor position information, speed information, obtainmenttime information, or obtainment location information. Sensor positioninformation indicates a position of a sensor that has obtained sensorinformation. Speed information indicates a speed of the mobile objectwhen a sensor obtained sensor information. Obtainment time informationindicates a time when a sensor obtained sensor information. Obtainmentlocation information indicates a position of the mobile object or asensor when the sensor obtained sensor information.

Next, data transmission possibility determiner 2013 determines whetherthe mobile object (client device 2002) is in an environment in which themobile object can transmit sensor information to server 2001 (S2002).For example, data transmission possibility determiner 2013 may specify alocation and a time at which client device 2002 is present using GPSinformation etc., and may determine whether data can be transmitted.Additionally, data transmission possibility determiner 2013 maydetermine whether data can be transmitted, depending on whether it ispossible to connect to a specific access point.

When client device 2002 determines that the mobile object is in theenvironment in which the mobile object can transmit the sensorinformation to server 2001 (YES in S2002), client device 2002 transmitsthe sensor information to server 2001 (S2003). In other words, whenclient device 2002 becomes capable of transmitting sensor information toserver 2001, client device 2002 transmits the sensor information held byclient device 2002 to server 2001. For example, an access point thatenables high-speed communication using millimeter waves is provided inan intersection or the like. When client device 2002 enters theintersection, client device 2002 transmits the sensor information heldby client device 2002 to server 2001 at high speed using themillimeter-wave communication.

Next, client device 2002 deletes from storage 2012 the sensorinformation that has been transmitted to server 2001 (S2004). It shouldbe noted that when sensor information that has not been transmitted toserver 2001 meets predetermined conditions, client device 2002 maydelete the sensor information. For example, when an obtainment time ofsensor information held by client device 2002 precedes a current time bya certain time, client device 2002 may delete the sensor informationfrom storage 2012. In other words, when a difference between the currenttime and a time when a sensor obtained sensor information exceeds apredetermined time, client device 2002 may delete the sensor informationfrom storage 2012. Besides, when an obtainment location of sensorinformation held by client device 2002 is separated from a currentlocation by a certain distance, client device 2002 may delete the sensorinformation from storage 2012. In other words, when a difference betweena current position of the mobile object or a sensor and a position ofthe mobile object or the sensor when the sensor obtained sensorinformation exceeds a predetermined distance, client device 2002 maydelete the sensor information from storage 2012. Accordingly, it ispossible to reduce the capacity of storage 2012 of client device 2002.

When client device 2002 does not finish obtaining sensor information (NOin S2005), client device 2002 performs step S2001 and the subsequentsteps again. Further, when client device 2002 finishes obtaining sensorinformation (YES in S2005), client device 2002 completes the process.

Client device 2002 may select sensor information to be transmitted toserver 2001, in accordance with communication conditions. For example,when high-speed communication is available, client device 2002preferentially transmits sensor information (e.g., information obtainedby LiDAR) of which the data size held in storage 2012 is large.Additionally, when high-speed communication is not readily available,client device 2002 transmits sensor information (e.g., a visible lightimage) which has high priority and of which the data size held instorage 2012 is small. Accordingly, client device 2002 can efficientlytransmit sensor information held in storage 2012, in accordance withnetwork conditions

Client device 2002 may obtain, from server 2001, time informationindicating a current time and location information indicating a currentlocation. Moreover, client device 2002 may determine an obtainment timeand an obtainment location of sensor information based on the obtainedtime information and location information. In other words, client device2002 may obtain time information from server 2001 and generateobtainment time information using the obtained time information. Clientdevice 2002 may also obtain location information from server 2001 andgenerate obtainment location information using the obtained locationinformation.

For example, regarding time information, server 2001 and client device2002 perform clock synchronization using a means such as the NetworkTime Protocol (NTP) or the Precision Time Protocol (PTP). This enablesclient device 2002 to obtain accurate time information. What's more,since it is possible to synchronize clocks between server 2001 andclient devices 2002, it is possible to synchronize times included inpieces of sensor information obtained by separate client devices 2002.As a result, server 2001 can handle sensor information indicating asynchronized time. It should be noted that a means of synchronizingclocks may be any means other than the NTP or PTP. In addition, GPSinformation may be used as the time information and the locationinformation.

Server 2001 may specify a time or a location and obtain pieces of sensorinformation from client devices 2002. For example, when an accidentoccurs, in order to search for a client device in the vicinity of theaccident, server 2001 specifies an accident occurrence time and anaccident occurrence location and broadcasts sensor informationtransmission requests to client devices 2002. Then, client device 2002having sensor information obtained at the corresponding time andlocation transmits the sensor information to server 2001. In otherwords, client device 2002 receives, from server 2001, a sensorinformation transmission request including specification informationspecifying a location and a time. When sensor information obtained at alocation and a time indicated by the specification information is storedin storage 2012, and client device 2002 determines that the mobileobject is present in the environment in which the mobile object cantransmit the sensor information to server 2001, client device 2002transmits, to server 2001, the sensor information obtained at thelocation and the time indicated by the specification information.Consequently, server 2001 can obtain the pieces of sensor informationpertaining to the occurrence of the accident from client devices 2002,and use the pieces of sensor information for accident analysis etc.

It should be noted that when client device 2002 receives a sensorinformation transmission request from server 2001, client device 2002may refuse to transmit sensor information. Additionally, client device2002 may set in advance which pieces of sensor information can betransmitted. Alternatively, server 2001 may inquire of client device2002 each time whether sensor information can be transmitted.

A point may be given to client device 2002 that has transmitted sensorinformation to server 2001. This point can be used in payment for, forexample, gasoline expenses, electric vehicle (EV) charging expenses, ahighway toll, or rental car expenses. After obtaining sensorinformation, server 2001 may delete information for specifying clientdevice 2002 that has transmitted the sensor information. For example,this information is a network address of client device 2002. Since thisenables the anonymization of sensor information, a user of client device2002 can securely transmit sensor information from client device 2002 toserver 2001. Server 2001 may include servers. For example, by serverssharing sensor information, even when one of the servers breaks down,the other servers can communicate with client device 2002. Accordingly,it is possible to avoid service outage due to a server breakdown.

A specified location specified by a sensor information transmissionrequest indicates an accident occurrence location etc., and may bedifferent from a position of client device 2002 at a specified timespecified by the sensor information transmission request. For thisreason, for example, by specifying, as a specified location, a rangesuch as within XX meters of a surrounding area, server 2001 can requestinformation from client device 2002 within the range. Similarly, server2001 may also specify, as a specified time, a range such as within Nseconds before and after a certain time. As a result, server 2001 canobtain sensor information from client device 2002 present for a timefrom t-N to t+N and in a location within XX meters from absoluteposition S. When client device 2002 transmits three-dimensional datasuch as LiDAR, client device 2002 may transmit data created immediatelyafter time t.

Server 2001 may separately specify information indicating, as aspecified location, a location of client device 2002 from which sensorinformation is to be obtained, and a location at which sensorinformation is desirably obtained. For example, server 2001 specifiesthat sensor information including at least a range within YY meters fromabsolute position S is to be obtained from client device 2002 presentwithin XX meters from absolute position S. When client device 2002selects three-dimensional data to be transmitted, client device 2002selects one or more pieces of three-dimensional data so that the one ormore pieces of three-dimensional data include at least the sensorinformation including the specified range. Each of the one or morepieces of three-dimensional data is a random-accessible unit of data. Inaddition, when client device 2002 transmits a visible light image,client device 2002 may transmit pieces of temporally continuous imagedata including at least a frame immediately before or immediately aftertime t.

When client device 2002 can use physical networks such as 5G, Wi-Fi, ormodes in 5G for transmitting sensor information, client device 2002 mayselect a network to be used according to the order of priority notifiedby server 2001. Alternatively, client device 2002 may select a networkthat enables client device 2002 to ensure an appropriate bandwidth basedon the size of transmit data. Alternatively, client device 2002 mayselect a network to be used, based on data transmission expenses etc. Atransmission request from server 2001 may include information indicatinga transmission deadline, for example, performing transmission whenclient device 2002 can start transmission by time t. When server 2001cannot obtain sufficient sensor information within a time limit, server2001 may issue a transmission request again.

Sensor information may include header information indicatingcharacteristics of sensor data along with compressed or uncompressedsensor data. Client device 2002 may transmit header information toserver 2001 via a physical network or a communication protocol that isdifferent from a physical network or a communication protocol used forsensor data. For example, client device 2002 transmits headerinformation to server 2001 prior to transmitting sensor data. Server2001 determines whether to obtain the sensor data of client device 2002,based on a result of analysis of the header information. For example,header information may include information indicating a point cloudobtainment density, an elevation angle, or a frame rate of LiDAR, orinformation indicating, for example, a resolution, an SN ratio, or aframe rate of a visible light image. Accordingly, server 2001 can obtainthe sensor information from client device 2002 having the sensor data ofdetermined quality.

As stated above, client device 2002 is provided in the mobile object,obtains sensor information that has been obtained by a sensor providedin the mobile object and indicates a surrounding state of the mobileobject, and stores the sensor information into storage 2012. Clientdevice 2002 determines whether the mobile object is present in anenvironment in which the mobile object is capable of transmitting thesensor information to server 2001, and transmits the sensor informationto server 2001 when the mobile object is determined to be present in theenvironment in which the mobile object is capable of transmitting thesensor information to server 2001.

Additionally, client device 2002 further creates, from the sensorinformation, three-dimensional data of a surrounding area of the mobileobject, and estimates a self-location of the mobile object using thethree-dimensional data created.

Besides, client device 2002 further transmits a transmission request fora three-dimensional map to server 2001, and receives thethree-dimensional map from server 2001. In the estimating, client device2002 estimates the self-location using the three-dimensional data andthe three-dimensional map.

It should be noted that the above process performed by client device2002 may be realized as an information transmission method for use inclient device 2002.

In addition, client device 2002 may include a processor and memory.Using the memory, the processor may perform the above process.

Next, a sensor information collection system according to the presentembodiment will be described. FIG. 91 is a diagram illustrating aconfiguration of the sensor information collection system according tothe present embodiment. As illustrated in FIG. 91, the sensorinformation collection system according to the present embodimentincludes terminal 2021A, terminal 2021B, communication device 2022A,communication device 2022B, network 2023, data collection server 2024,map server 2025, and client device 2026. It should be noted that whenterminal 2021A and terminal 2021B are not particularly distinguished,terminal 2021A and terminal 2021B are also referred to as terminal 2021.Additionally, when communication device 2022A and communication device2022B are not particularly distinguished, communication device 2022A andcommunication device 2022B are also referred to as communication device2022.

Data collection server 2024 collects data such as sensor data obtainedby a sensor included in terminal 2021 as position-related data in whichthe data is associated with a position in a three-dimensional space.

Sensor data is data obtained by, for example, detecting a surroundingstate of terminal 2021 or an internal state of terminal 2021 using asensor included in terminal 2021. Terminal 2021 transmits, to datacollection server 2024, one or more pieces of sensor data collected fromone or more sensor devices in locations at which direct communicationwith terminal 2021 is possible or at which communication with terminal2021 is possible by the same communication system or via one or morerelay devices.

Data included in position-related data may include, for example,information indicating an operating state, an operating log, a serviceuse state, etc. of a terminal or a device included in the terminal. Inaddition, the data include in the position-related data may include, forexample, information in which an identifier of terminal 2021 isassociated with a position or a movement path etc. of terminal 2021.

Information indicating a position included in position-related data isassociated with, for example, information indicating a position inthree-dimensional data such as three-dimensional map data. The detailsof information indicating a position will be described later.

Position-related data may include at least one of the above-describedtime information or information indicating an attribute of data includedin the position-related data or a type (e.g., a model number) of asensor that has created the data, in addition to position informationthat is information indicating a position. The position information andthe time information may be stored in a header area of theposition-related data or a header area of a frame that stores theposition-related data. Further, the position information and the timeinformation may be transmitted and/or stored as metadata associated withthe position-related data, separately from the position-related data.

Map server 2025 is connected to, for example, network 2023, andtransmits three-dimensional data such as three-dimensional map data inresponse to a request from another device such as terminal 2021.Besides, as described in the aforementioned embodiments, map server 2025may have, for example, a function of updating three-dimensional datausing sensor information transmitted from terminal 2021.

Data collection server 2024 is connected to, for example, network 2023,collects position-related data from another device such as terminal2021, and stores the collected position-related data into a storage ofdata collection server 2024 or a storage of another server. In addition,data collection server 2024 transmits, for example, metadata ofcollected position-related data or three-dimensional data generatedbased on the position-related data, to terminal 2021 in response to arequest from terminal 2021.

Network 2023 is, for example, a communication network such as theInternet. Terminal 2021 is connected to network 2023 via communicationdevice 2022. Communication device 2022 communicates with terminal 2021using one communication system or switching between communicationsystems.

Communication device 2022 is a communication satellite that performscommunication using, for example, (1) a base station compliant withLong-Term Evolution (LTE) etc., (2) an access point (AP) for Wi-Fi ormillimeter-wave communication etc., (3) a low-power wide-area (LPWA)network gateway such as SIGFOX, LoRaWAN, or Wi-SUN, or (4) a satellitecommunication system such as DVB-S2.

It should be noted that a base station may communicate with terminal2021 using a system classified as an LPWA network such as NarrowbandInternet of Things (NB IoT) or LTE-M, or switching between thesesystems. Here, although, in the example given, terminal 2021 has afunction of communicating with communication device 2022 that uses twotypes of communication systems, and communicates with map server 2025 ordata collection server 2024 using one of the communication systems orswitching between the communication systems and between communicationdevices 2022 to be a direct communication partner; a configuration ofthe sensor information collection system and terminal 2021 is notlimited to this. For example, terminal 2021 need not have a function ofperforming communication using communication systems, and may have afunction of performing communication using one of the communicationsystems. Terminal 2021 may also support three or more communicationsystems. Additionally, each terminal 2021 may support a differentcommunication system.

Terminal 2021 includes, for example, the configuration of client device902 illustrated in FIG. 81. Terminal 2021 estimates a self-location etc.using received three-dimensional data. Besides, terminal 2021 associatessensor data obtained from a sensor and position information obtained byself-location estimation to generate position-related data.

Position information appended to position-related data indicates, forexample, a position in a coordinate system used for three-dimensionaldata. For example, the position information is coordinate valuesrepresented using a value of a latitude and a value of a longitude.Here, terminal 2021 may include, in the position information, acoordinate system serving as a reference for the coordinate values andinformation indicating three-dimensional data used for locationestimation, along with the coordinate values. Coordinate values may alsoinclude altitude information.

The position information may be associated with a data unit or a spaceunit usable for encoding the above three-dimensional data. Such a unitis, for example, WLD, GOS, SPC, VLM, or VXL. Here, the positioninformation is represented by, for example, an identifier foridentifying a data unit such as the SPC corresponding toposition-related data. It should be noted that the position informationmay include, for example, information indicating three-dimensional dataobtained by encoding a three-dimensional space including a data unitsuch as the SPC or information indicating a detailed position within theSPC, in addition to the identifier for identifying the data unit such asthe SPC. The information indicating the three-dimensional data is, forexample, a file name of the three-dimensional data.

As stated above, by generating position-related data associated withposition information based on location estimation usingthree-dimensional data, the system can give more accurate positioninformation to sensor information than when the system appends positioninformation based on a self-location of a client device (terminal 2021)obtained using a GPS to sensor information. As a result, even whenanother device uses the position-related data in another service, thereis a possibility of more accurately determining a position correspondingto the position-related data in an actual space, by performing locationestimation based on the same three-dimensional data.

It should be noted that although the data transmitted from terminal 2021is the position-related data in the example given in the presentembodiment, the data transmitted from terminal 2021 may be dataunassociated with position information. In other words, the transmissionand reception of three-dimensional data or sensor data described in theother embodiments may be performed via network 2023 described in thepresent embodiment.

Next, a different example of position information indicating a positionin a three-dimensional or two-dimensional actual space or in a map spacewill be described. The position information appended to position-relateddata may be information indicating a relative position relative to akeypoint in three-dimensional data. Here, the keypoint serving as areference for the position information is encoded as, for example, SWLD,and notified to terminal 2021 as three-dimensional data.

The information indicating the relative position relative to thekeypoint may be, for example, information that is represented by avector from the keypoint to the point indicated by the positioninformation, and indicates a direction and a distance from the keypointto the point indicated by the position information. Alternatively, theinformation indicating the relative position relative to the keypointmay be information indicating an amount of displacement from thekeypoint to the point indicated by the position information along eachof the x axis, the y axis, and the z axis. Additionally, the informationindicating the relative position relative to the keypoint may beinformation indicating a distance from each of three or more keypointsto the point indicated by the position information. It should be notedthat the relative position need not be a relative position of the pointindicated by the position information represented using each keypoint asa reference, and may be a relative position of each keypoint representedwith respect to the point indicated by the position information.Examples of position information based on a relative position relativeto a keypoint include information for identifying a keypoint to be areference, and information indicating the relative position of the pointindicated by the position information and relative to the keypoint. Whenthe information indicating the relative position relative to thekeypoint is provided separately from three-dimensional data, theinformation indicating the relative position relative to the keypointmay include, for example, coordinate axes used in deriving the relativeposition, information indicating a type of the three-dimensional data,and/or information indicating a magnitude per unit amount (e.g., ascale) of a value of the information indicating the relative position.

The position information may include, for each keypoint, informationindicating a relative position relative to the keypoint. When theposition information is represented by relative positions relative tokeypoints, terminal 2021 that intends to identify a position in anactual space indicated by the position information may calculatecandidate points of the position indicated by the position informationfrom positions of the keypoints each estimated from sensor data, and maydetermine that a point obtained by averaging the calculated candidatepoints is the point indicated by the position information. Since thisconfiguration reduces the effects of errors when the positions of thekeypoints are estimated from the sensor data, it is possible to improvethe estimation accuracy for the point in the actual space indicated bythe position information. Besides, when the position informationincludes information indicating relative positions relative tokeypoints, if it is possible to detect any one of the keypointsregardless of the presence of keypoints undetectable due to a limitationsuch as a type or performance of a sensor included in terminal 2021, itis possible to estimate a value of the point indicated by the positioninformation.

A point identifiable from sensor data can be used as a keypoint.Examples of the point identifiable from the sensor data include a pointor a point within a region that satisfies a predetermined keypointdetection condition, such as the above-described three-dimensionalfeature or feature of visible light data is greater than or equal to athreshold value.

Moreover, a marker etc. placed in an actual space may be used as akeypoint. In this case, the maker may be detected and located from dataobtained using a sensor such as LiDAR or a camera. For example, themarker may be represented by a change in color or luminance value(degree of reflection), or a three-dimensional shape (e.g., unevenness).Coordinate values indicating a position of the marker, or atwo-dimensional bar code or a bar code etc. generated from an identifierof the marker may be also used.

Furthermore, a light source that transmits an optical signal may be usedas a marker. When a light source of an optical signal is used as amarker, not only information for obtaining a position such as coordinatevalues or an identifier but also other data may be transmitted using anoptical signal. For example, an optical signal may include contents ofservice corresponding to the position of the marker, an address forobtaining contents such as a URL, or an identifier of a wirelesscommunication device for receiving service, and information indicating awireless communication system etc. for connecting to the wirelesscommunication device. The use of an optical communication device (alight source) as a marker not only facilitates the transmission of dataother than information indicating a position but also makes it possibleto dynamically change the data.

Terminal 2021 finds out a correspondence relationship of keypointsbetween mutually different data using, for example, a common identifierused for the data, or information or a table indicating thecorrespondence relationship of the keypoints between the data. Whenthere is no information indicating a correspondence relationship betweenkeypoints, terminal 2021 may also determine that when coordinates of akeypoint in three-dimensional data are converted into a position in aspace of another three-dimensional data, a keypoint closest to theposition is a corresponding keypoint.

When the position information based on the relative position describedabove is used, terminal 2021 that uses mutually differentthree-dimensional data or services can identify or estimate a positionindicated by the position information with respect to a common keypointincluded in or associated with each three-dimensional data. As a result,terminal 2021 that uses the mutually different three-dimensional data orthe services can identify or estimate the same position with higheraccuracy.

Even when map data or three-dimensional data represented using mutuallydifferent coordinate systems are used, since it is possible to reducethe effects of errors caused by the conversion of a coordinate system,it is possible to coordinate services based on more accurate positioninformation.

Hereinafter, an example of functions provided by data collection server2024 will be described. Data collection server 2024 may transferreceived position-related data to another data server. When there aredata servers, data collection server 2024 determines to which dataserver received position-related data is to be transferred, andtransfers the position-related data to a data server determined as atransfer destination.

Data collection server 2024 determines a transfer destination based on,for example, transfer destination server determination rules preset todata collection server 2024. The transfer destination serverdetermination rules are set by, for example, a transfer destinationtable in which identifiers respectively associated with terminals 2021are associated with transfer destination data servers.

Terminal 2021 appends an identifier associated with terminal 2021 toposition-related data to be transmitted, and transmits theposition-related data to data collection server 2024. Data collectionserver 2024 determines a transfer destination data server correspondingto the identifier appended to the position-related data, based on thetransfer destination server determination rules set out using thetransfer destination table etc.; and transmits the position-related datato the determined data server. The transfer destination serverdetermination rules may be specified based on a determination conditionset using a time, a place, etc. at which position-related data isobtained. Here, examples of the identifier associated with transmissionsource terminal 2021 include an identifier unique to each terminal 2021or an identifier indicating a group to which terminal 2021 belongs.

The transfer destination table need not be a table in which identifiersassociated with transmission source terminals are directly associatedwith transfer destination data servers. For example, data collectionserver 2024 holds a management table that stores tag informationassigned to each identifier unique to terminal 2021, and a transferdestination table in which the pieces of tag information are associatedwith transfer destination data servers. Data collection server 2024 maydetermine a transfer destination data server based on tag information,using the management table and the transfer destination table. Here, thetag information is, for example, control information for management orcontrol information for providing service assigned to a type, a modelnumber, an owner of terminal 2021 corresponding to the identifier, agroup to which terminal 2021 belongs, or another identifier. Moreover,in the transfer destination able, identifiers unique to respectivesensors may be used instead of the identifiers associated withtransmission source terminals 2021. Furthermore, the transferdestination server determination rules may be set by client device 2026.

Data collection server 2024 may determine data servers as transferdestinations, and transfer received position-related data to the dataservers. According to this configuration, for example, whenposition-related data is automatically backed up or when, in order thatposition-related data is commonly used by different services, there is aneed to transmit the position-related data to a data server forproviding each service, it is possible to achieve data transfer asintended by changing a setting of data collection server 2024. As aresult, it is possible to reduce the number of steps necessary forbuilding and changing a system, compared to when a transmissiondestination of position-related data is set for each terminal 2021.

Data collection server 2024 may register, as a new transfer destination,a data server specified by a transfer request signal received from adata server; and transmit position-related data subsequently received tothe data server, in response to the transfer request signal.

Data collection server 2024 may store position-related data receivedfrom terminal 2021 into a recording device, and transmitposition-related data specified by a transmission request signalreceived from terminal 2021 or a data server to request source terminal2021 or the data server in response to the transmission request signal.

Data collection server 2024 may determine whether position-related datais suppliable to a request source data server or terminal 2021, andtransfer or transmit the position-related data to the request sourcedata server or terminal 2021 when determining that the position-relateddata is suppliable.

When data collection server 2024 receives a request for currentposition-related data from client device 2026, even if it is not atiming for transmitting position-related data by terminal 2021, datacollection server 2024 may send a transmission request for the currentposition-related data to terminal 2021, and terminal 2021 may transmitthe current position-related data in response to the transmissionrequest.

Although terminal 2021 transmits position information data to datacollection server 2024 in the above description, data collection server2024 may have a function of managing terminal 2021 such as a functionnecessary for collecting position-related data from terminal 2021 or afunction used when collecting position-related data from terminal 2021.

Data collection server 2024 may have a function of transmitting, toterminal 2021, a data request signal for requesting transmission ofposition information data, and collecting position-related data.

Management information such as an address for communicating withterminal 2021 from which data is to be collected or an identifier uniqueto terminal 2021 is registered in advance in data collection server2024. Data collection server 2024 collects position-related data fromterminal 2021 based on the registered management information. Managementinformation may include information such as types of sensors included interminal 2021, the number of sensors included in terminal 2021, andcommunication systems supported by terminal 2021.

Data collection server 2024 may collect information such as an operatingstate or a current position of terminal 2021 from terminal 2021.

Registration of management information may be instructed by clientdevice 2026, or a process for the registration may be started byterminal 2021 transmitting a registration request to data collectionserver 2024. Data collection server 2024 may have a function ofcontrolling communication between data collection server 2024 andterminal 2021.

Communication between data collection server 2024 and terminal 2021 maybe established using a dedicated line provided by a service providersuch as a mobile network operator (MNO) or a mobile virtual networkoperator (MVNO), or a virtual dedicated line based on a virtual privatenetwork (VPN). According to this configuration, it is possible toperform secure communication between terminal 2021 and data collectionserver 2024.

Data collection server 2024 may have a function of authenticatingterminal 2021 or a function of encrypting data to be transmitted andreceived between data collection server 2024 and terminal 2021. Here,the authentication of terminal 2021 or the encryption of data isperformed using, for example, an identifier unique to terminal 2021 oran identifier unique to a terminal group including terminals 2021, whichis shared in advance between data collection server 2024 and terminal2021. Examples of the identifier include an international mobilesubscriber identity (IMSI) that is a unique number stored in asubscriber identity module (SIM) card. An identifier for use inauthentication and an identifier for use in encryption of data may beidentical or different.

The authentication or the encryption of data between data collectionserver 2024 and terminal 2021 is feasible when both data collectionserver 2024 and terminal 2021 have a function of performing the process.The process does not depend on a communication system used bycommunication device 2022 that performs relay. Accordingly, since it ispossible to perform the common authentication or encryption withoutconsidering whether terminal 2021 uses a communication system, theuser's convenience of system architecture is increased. However, theexpression “does not depend on a communication system used bycommunication device 2022 that performs relay” means a change accordingto a communication system is not essential. In other words, in order toimprove the transfer efficiency or ensure security, the authenticationor the encryption of data between data collection server 2024 andterminal 2021 may be changed according to a communication system used bya relay device.

Data collection server 2024 may provide client device 2026 with a UserInterface (UI) that manages data collection rules such as types ofposition-related data collected from terminal 2021 and data collectionschedules. Accordingly, a user can specify, for example, terminal 2021from which data is to be collected using client device 2026, a datacollection time, and a data collection frequency. Additionally, datacollection server 2024 may specify, for example, a region on a map fromwhich data is to be desirably collected, and collect position-relateddata from terminal 2021 included in the region.

When the data collection rules are managed on a per terminal 2021 basis,client device 2026 presents, on a screen, a list of terminals 2021 orsensors to be managed. The user sets, for example, a necessity for datacollection or a collection schedule for each item in the list.

When a region on a map from which data is to be desirably collected isspecified, client device 2026 presents, on a screen, a two-dimensionalor three-dimensional map of a region to be managed. The user selects theregion from which data is to be collected on the displayed map. Examplesof the region selected on the map include a circular or rectangularregion having a point specified on the map as the center, or a circularor rectangular region specifiable by a drag operation. Client device2026 may also select a region in a preset unit such as a city, an areaor a block in a city, or a main road, etc. Instead of specifying aregion using a map, a region may be set by inputting values of alatitude and a longitude, or a region may be selected from a list ofcandidate regions derived based on inputted text information. Textinformation is, for example, a name of a region, a city, or a landmark.

Moreover, data may be collected while the user dynamically changes aspecified region by specifying one or more terminals 2021 and setting acondition such as within 100 meters of one or more terminals 2021.

When client device 2026 includes a sensor such as a camera, a region ona map may be specified based on a position of client device 2026 in anactual space obtained from sensor data. For example, client device 2026may estimate a self-location using sensor data, and specify, as a regionfrom which data is to be collected, a region within a predetermineddistance from a point on a map corresponding to the estimated locationor a region within a distance specified by the user. Client device 2026may also specify, as the region from which the data is to be collected,a sensing region of the sensor, that is, a region corresponding toobtained sensor data. Alternatively, client device 2026 may specify, asthe region from which the data is to be collected, a region based on alocation corresponding to sensor data specified by the user. Eitherclient device 2026 or data collection server 2024 may estimate a regionon a map or a location corresponding to sensor data.

When a region on a map is specified, data collection server 2024 mayspecify terminal 2021 within the specified region by collecting currentposition information of each terminal 2021, and may send a transmissionrequest for position-related data to specified terminal 2021. When datacollection server 2024 transmits information indicating a specifiedregion to terminal 2021, determines whether terminal 2021 is presentwithin the specified region, and determines that terminal 2021 ispresent within the specified region, rather than specifying terminal2021 within the region, terminal 2021 may transmit position-relateddata.

Data collection server 2024 transmits, to client device 2026, data suchas a list or a map for providing the above-described User Interface (UI)in an application executed by client device 2026. Data collection server2024 may transmit, to client device 2026, not only the data such as thelist or the map but also an application program. Additionally, the aboveUI may be provided as contents created using HTML displayable by abrowser. It should be noted that part of data such as map data may besupplied from a server, such as map server 2025, other than datacollection server 2024.

When client device 2026 receives an input for notifying the completionof an input such as pressing of a setup key by the user, client device2026 transmits the inputted information as configuration information todata collection server 2024. Data collection server 2024 transmits, toeach terminal 2021, a signal for requesting position-related data ornotifying position-related data collection rules, based on theconfiguration information received from client device 2026, and collectsthe position-related data.

Next, an example of controlling operation of terminal 2021 based onadditional information added to three-dimensional or two-dimensional mapdata will be described.

In the present configuration, object information that indicates aposition of a power feeding part such as a feeder antenna or a feedercoil for wireless power feeding buried under a road or a parking lot isincluded in or associated with three-dimensional data, and such objectinformation is provided to terminal 2021 that is a vehicle or a drone.

A vehicle or a drone that has obtained the object information to getcharged automatically moves so that a position of a charging part suchas a charging antenna or a charging coil included in the vehicle or thedrone becomes opposite to a region indicated by the object information,and such vehicle or a drone starts to charge itself. It should be notedthat when a vehicle or a drone has no automatic driving function, adirection to move in or an operation to perform is presented to a driveror an operator by using an image displayed on a screen, audio, etc. Whena position of a charging part calculated based on an estimatedself-location is determined to fall within the region indicated by theobject information or a predetermined distance from the region, an imageor audio to be presented is changed to a content that puts a stop todriving or operating, and the charging is started.

Object information need not be information indicating a position of apower feeding part, and may be information indicating a region withinwhich placement of a charging part results in a charging efficiencygreater than or equal to a predetermined threshold value. A positionindicated by object information may be represented by, for example, thecentral point of a region indicated by the object information, a regionor a line within a two-dimensional plane, or a region, a line, or aplane within a three-dimensional space.

According to this configuration, since it is possible to identify theposition of the power feeding antenna unidentifiable by sensing data ofLiDAR or an image captured by the camera, it is possible to highlyaccurately align a wireless charging antenna included in terminal 2021such as a vehicle with a wireless power feeding antenna buried under aroad. As a result, it is possible to increase a charging speed at thetime of wireless charging and improve the charging efficiency.

Object information may be an object other than a power feeding antenna.For example, three-dimensional data includes, for example, a position ofan AP for millimeter-wave wireless communication as object information.Accordingly, since terminal 2021 can identify the position of the AP inadvance, terminal 2021 can steer a directivity of beam to a direction ofthe object information and start communication. As a result, it ispossible to improve communication quality such as increasingtransmission rates, reducing the duration of time before startingcommunication, and extending a communicable period.

Object information may include information indicating a type of anobject corresponding to the object information. In addition, whenterminal 2021 is present within a region in an actual spacecorresponding to a position in three-dimensional data of the objectinformation or within a predetermined distance from the region, theobject information may include information indicating a process to beperformed by terminal 2021.

Object information may be provided by a server different from a serverthat provides three-dimensional data. When object information isprovided separately from three-dimensional data, object groups in whichobject information used by the same service is stored may be eachprovided as separate data according to a type of a target service or atarget device.

Three-dimensional data used in combination with object information maybe point cloud data of WLD or keypoint data of SWLD.

In the three-dimensional data encoding device, when attributeinformation of a current three-dimensional point to be encoded islayer-encoded using Levels of Detail (LoDs), the three-dimensional datadecoding device may decode the attribute information in layers down toLoD required by the three-dimensional data decoding device and need notdecode the attribute information in layers not required. For example,when the total number of LoDs for the attribute information in abitstream generated by the three-dimensional data encoding device is N,the three-dimensional data decoding device may decode M LoDs (M<N),i.e., layers from the uppermost layer LoD0 to LoD(M−1), and need notdecode the remaining LoDs, i.e., layers down to LoD(N−1). With this,while reducing the processing load, the three-dimensional data decodingdevice can decode the attribute information in layers from LoD0 toLoD(M−1) required by the three-dimensional data decoding device.

FIG. 92 is a diagram illustrating the foregoing use case. In the exampleshown in FIG. 92, a server stores a three-dimensional map obtained byencoding three-dimensional geometry information and attributeinformation. The server (the three-dimensional data encoding device)broadcasts the three-dimensional map to client devices (thethree-dimensional data decoding devices: for example, vehicles, drones,etc.) in an area managed by the server, and each client device uses thethree-dimensional map received from the server to perform a process foridentifying the self-position of the client device or a process fordisplaying map information to a user or the like who operates the clientdevice.

The following describes an example of the operation in this case. First,the server encodes the geometry information of the three-dimensional mapusing an octree structure or the like. Then, the sever layer-encodes theattribute information of the three-dimensional map using N LoDsestablished based on the geometry information. The server stores abitstream of the three-dimensional map obtained by the layer-encoding.

Next, in response to a send request for the map information from theclient device in the area managed by the server, the server sends thebitstream of the encoded three-dimensional map to the client device.

The client device receives the bitstream of the three-dimensional mapsent from the server, and decodes the geometry information and theattribute information of the three-dimensional map in accordance withthe intended use of the client device. For example, when the clientdevice performs highly accurate estimation of the self-position usingthe geometry information and the attribute information in N LoDs, theclient device determines that a decoding result to the densethree-dimensional points is necessary as the attribute information, anddecodes all the information in the bitstream.

Moreover, when the client device displays the three-dimensional mapinformation to a user or the like, the client device determines that adecoding result to the sparse three-dimensional points is necessary asthe attribute information, and decodes the geometry information and theattribute information in M LoDs (M<N) starting from an upper layer LoD0.

In this way, the processing load of the client device can be reduced bychanging LoDs for the attribute information to be decoded in accordancewith the intended use of the client device.

In the example shown in FIG. 92, for example, the three-dimensional mapincludes geometry information and attribute information. The geometryinformation is encoded using the octree. The attribute information isencoded using N LoDs.

Client device A performs highly accurate estimation of theself-position. In this case, client device A determines that all thegeometry information and all the attribute information are necessary,and decodes all the geometry information and all the attributeinformation constructed from N LoDs in the bitstream.

Client device B displays the three-dimensional map to a user. In thiscase, client device B determines that the geometry information and theattribute information in M LoDs (M<N) are necessary, and decodes thegeometry information and the attribute information constructed from MLoDs in the bitstream.

It is to be noted that the server may broadcast the three-dimensionalmap to the client devices, or multicast or unicast the three-dimensionalmap to the client devices.

The following describes a variation of the system according to thepresent embodiment. In the three-dimensional data encoding device, whenattribute information of a current three-dimensional point to be encodedis layer-encoded using LoDs, the three-dimensional data encoding devicemay encode the attribute information in layers down to LoD required bythe three-dimensional data decoding device and need not encode theattribute information in layers not required. For example, when thetotal number of LoDs is N, the three-dimensional data encoding devicemay generate a bitstream by encoding M LoDs (M<N), i.e., layers from theuppermost layer LoD0 to LoD(M−1), and not encoding the remaining LoDs,i.e., layers down to LoD(N−1). With this, in response to a request fromthe three-dimensional data decoding device, the three-dimensional dataencoding device can provide a bitstream in which the attributeinformation from LoD0 to LoD(M−1) required by the three-dimensional datadecoding device is encoded.

FIG. 93 is a diagram illustrating the foregoing use case. In the exampleshown in FIG. 93, a server stores a three-dimensional map obtained byencoding three-dimensional geometry information and attributeinformation. The server (the three-dimensional data encoding device)unicasts, in response to a request from the client device, thethree-dimensional map to a client device (the three-dimensional datadecoding device: for example, a vehicle, a drone, etc.) in an areamanaged by the server, and the client device uses the three-dimensionalmap received from the server to perform a process for identifying theself-position of the client device or a process for displaying mapinformation to a user or the like who operates the client device.

The following describes an example of the operation in this case. First,the server encodes the geometry information of the three-dimensional mapusing an octree structure, or the like. Then, the sever generates abitstream of three-dimensional map A by layer-encoding the attributeinformation of the three-dimensional map using N LoDs established basedon the geometry information, and stores the generated bitstream in theserver. The sever also generates a bitstream of three-dimensional map Bby layer-encoding the attribute information of the three-dimensional mapusing M LoDs (M<N) established based on the geometry information, andstores the generated bitstream in the server.

Next, the client device requests the server to send thethree-dimensional map in accordance with the intended use of the clientdevice. For example, when the client device performs highly accurateestimation of the self-position using the geometry information and theattribute information in N LoDs, the client device determines that adecoding result to the dense three-dimensional points is necessary asthe attribute information, and requests the server to send the bitstreamof three-dimensional map A. Moreover, when the client device displaysthe three-dimensional map information to a user or the like, the clientdevice determines that a decoding result to the sparse three-dimensionalpoints is necessary as the attribute information, and requests theserver to send the bitstream of three-dimensional map B including thegeometry information and the attribute information in M LoDs (M<N)starting from an upper layer LoD0. Then, in response to the send requestfor the map information from the client device, the server sends thebitstream of encoded three-dimensional map A or B to the client device.

The client device receives the bitstream of three-dimensional map A or Bsent from the server in accordance with the intended use of the clientdevice, and decodes the received bitstream. In this way, the serverchanges a bitstream to be sent, in accordance with the intended use ofthe client device. With this, it is possible to reduce the processingload of the client device.

In the example shown in FIG. 93, the server stores three-dimensional mapA and three-dimensional map B. The server generates three-dimensionalmap A by encoding the geometry information of the three-dimensional mapusing, for example, an octree structure, and encoding the attributeinformation of the three-dimensional map using N LoDs. In other words,NumLoD included in the bitstream of three-dimensional map A indicates N.

The server also generates three-dimensional map B by encoding thegeometry information of the three-dimensional map using, for example, anoctree structure, and encoding the attribute information of thethree-dimensional map using M LoDs. In other words, NumLoD included inthe bitstream of three-dimensional map B indicates M.

Client device A performs highly accurate estimation of theself-position. In this case, client device A determines that all thegeometry information and all the attribute information are necessary,and requests the server to send three-dimensional map A including allthe geometry information and the attribute information constructed fromN LoDs. Client device A receives three-dimensional map A, and decodesall the geometry information and the attribute information constructedfrom N LoDs.

Client device B displays the three-dimensional map to a user. In thiscase, client device B determines that all the geometry information andthe attribute information in M LoDs (M<N) are necessary, and requeststhe server to send three-dimensional map B including all the geometryinformation and the attribute information constructed from M LoDs.Client device B receives three-dimensional map B, and decodes all thegeometry information and the attribute information constructed from MLoDs.

It is to be noted that in addition to three-dimensional map B, theserver (the three-dimensional data encoding device) may generatethree-dimensional map C in which attribute information in the remainingN-M LoDs is encoded, and send three-dimensional map C to client device Bin response to the request from client device B. Moreover, client deviceB may obtain the decoding result of N LoDs using the bitstreams ofthree-dimensional maps B and C.

Hereinafter, an example of an application process will be described.FIG. 94 is a flowchart illustrating an example of the applicationprocess. When an application operation is started, a three-dimensionaldata demultiplexing device obtains an ISOBMFF file including point clouddata and a plurality of pieces of encoded data (S7301). For example, thethree-dimensional data demultiplexing device may obtain the ISOBMFF filethrough communication, or may read the ISOBMFF file from the accumulateddata.

Next, the three-dimensional data demultiplexing device analyzes thegeneral configuration information in the ISOBMFF file, and specifies thedata to be used for the application (S7302). For example, thethree-dimensional data demultiplexing device obtains data that is usedfor processing, and does not obtain data that is not used forprocessing.

Next, the three-dimensional data demultiplexing device extracts one ormore pieces of data to be used for the application, and analyzes theconfiguration information on the data (S7303).

When the type of the data is encoded data (encoded data in S7304), thethree-dimensional data demultiplexing device converts the ISOBMFF to anencoded stream, and extracts a timestamp (S7305). Additionally, thethree-dimensional data demultiplexing device refers to, for example, theflag indicating whether or not the synchronization between data isaligned to determine whether or not the synchronization between data isaligned, and may perform a synchronization process when not aligned.

Next, the three-dimensional data demultiplexing device decodes the datawith a predetermined method according to the timestamp and the otherinstructions, and processes the decoded data (S7306).

On the other hand, when the type of the data is RAW data (RAW data inS7304), the three-dimensional data demultiplexing device extracts thedata and timestamp (S7307). Additionally, the three-dimensional datademultiplexing device may refer to, for example, the flag indicatingwhether or not the synchronization between data is aligned to determinewhether or not the synchronization between data is aligned, and mayperform a synchronization process when not aligned. Next, thethree-dimensional data demultiplexing device processes the dataaccording to the timestamp and the other instructions (S7308).

For example, an example will be described in which the sensor signalsobtained by a beam LiDAR, a FLASH LiDAR, and a camera are encoded andmultiplexed with respective different encoding schemes. FIG. 95 is adiagram illustrating examples of the sensor ranges of a beam LiDAR, aFLASH LiDAR, and a camera. For example, the beam LiDAR detects alldirections in the periphery of a vehicle (sensor), and the FLASH LiDARand the camera detect the range in one direction (for example, thefront) of the vehicle.

In the case of an application that integrally handles a LiDAR pointcloud, the three-dimensional data demultiplexing device refers to thegeneral configuration information, and extracts and decodes the encodeddata of the beam LiDAR and the FLASH LiDAR. Additionally, thethree-dimensional data demultiplexing device does not extract cameraimages.

According to the timestamps of the beam LiDAR and the FLASH LiDAR, thethree-dimensional data demultiplexing device simultaneously processesthe respective encoded data of the time of the same timestamp.

For example, the three-dimensional data demultiplexing device maypresent the processed data with a presentation device, may synthesizethe point cloud data of the beam LiDAR and the FLASH LiDAR, or mayperform a process such as rendering.

Additionally, in the case of an application that performs calibrationbetween data, the three-dimensional data demultiplexing device mayextract sensor geometry information, and use the sensor geometryinformation in the application.

For example, the three-dimensional data demultiplexing device may selectwhether to use beam LiDAR information or FLASH LiDAR information in theapplication, and may switch the process according to the selectionresult.

In this manner, since it is possible to adaptively change the obtainingof data and the encoding process according to the process of theapplication, the processing amount and the power consumption can bereduced.

Hereinafter, a use case in automated driving will be described. FIG. 96is a diagram illustrating a configuration example of an automateddriving system. This automated driving system includes cloud server7350, and edge 7360 such as an in-vehicle device or a mobile device.Cloud server 7350 includes demultiplexer 7351, decoders 7352A, 7352B,and 7355, point cloud data synthesizer 7353, large data accumulator7354, comparator 7356, and encoder 7357. Edge 7360 includes sensors7361A and 7361B, point cloud data generators 7362A and 7362B,synchronizer 7363, encoders 7364A and 7364B, multiplexer 7365, updatedata accumulator 7366, demultiplexer 7367, decoder 7368, filter 7369,self-position estimator 7370, and driving controller 7371.

In this system, edge 7360 downloads large data, which is largepoint-cloud map data accumulated in cloud server 7350. Edge 7360performs a self-position estimation process of edge 7360 (a vehicle or aterminal) by matching the large data with the sensor informationobtained by edge 7360. Additionally, edge 7360 uploads the obtainedsensor information to cloud server 7350, and updates the large data tothe latest map data.

Additionally, in various applications that handle point cloud data inthe system, point cloud data with different encoding methods arehandled.

Cloud server 7350 encodes and multiplexes large data. Specifically,encoder 7357 performs encoding by using a third encoding method suitablefor encoding a large point cloud. Additionally, encoder 7357 multiplexesencoded data. Large data accumulator 7354 accumulates the data encodedand multiplexed by encoder 7357.

Edge 7360 performs sensing. Specifically, point cloud data generator7362A generates first point cloud data (geometry information (geometry)and attribute information) by using the sensing information obtained bysensor 7361A. Point cloud data generator 7362B generates second pointcloud data (geometry information and attribute information) by using thesensing information obtained by sensor 7361B. The generated first pointcloud data and second point cloud data are used for the self-positionestimation or vehicle control of automated driving, or for map updating.In each process, a part of information of the first point cloud data andthe second point cloud data may be used.

Edge 7360 performs the self-position estimation. Specifically, edge 7360downloads large data from cloud server 7350. Demultiplexer 7367 obtainsencoded data by demultiplexing the large data in a file format. Decoder7368 obtains large data, which is large point-cloud map data, bydecoding the obtained encoded data.

Self-position estimator 7370 estimates the self-position in the map of avehicle by matching the obtained large data with the first point clouddata and the second point cloud data generated by point cloud datagenerators 7362A and 7362B. Additionally, driving controller 7371 usesthe matching result or the self-position estimation result for drivingcontrol.

Note that self-position estimator 7370 and driving controller 7371 mayextract specific information, such as geometry information, of the largedata, and may perform processes by using the extracted information.Additionally, filter 7369 performs a process such as correction ordecimation on the first point cloud data and the second point clouddata. Self-position estimator 7370 and driving controller 7371 may usethe first point cloud data and second point cloud data on which theprocess has been performed. Additionally, self-position estimator 7370and driving controller 7371 may use the sensor signals obtained bysensors 7361A and 7361B.

Synchronizer 7363 performs time synchronization and geometry correctionbetween a plurality of sensor signals or the pieces of data of aplurality of pieces of point cloud data. Additionally, synchronizer 7363may correct the geometry information on the sensor signal or point clouddata to match the large data, based on geometry correction informationon the large data and sensor data generated by the self-positionestimation process.

Note that synchronization and geometry correction may be performed notby edge 7360, but by cloud server 7350. In this case, edge 7360 maymultiplex the synchronization information and the geometry informationto transmit the synchronization information and the geometry informationto cloud server 7350.

Edge 7360 encodes and multiplexes the sensor signal or point cloud data.Specifically, the sensor signal or point cloud data is encoded by usinga first encoding method or a second encoding method suitable forencoding each signal. For example, encoder 7364A generates first encodeddata by encoding first point cloud data by using the first encodingmethod. Encoder 7364B generates second encoded data by encoding secondpoint cloud data by using the second encoding method.

Multiplexer 7365 generates a multiplexed signal by multiplexing thefirst encoded data, the second encoded data, the synchronizationinformation, and the like. Update data accumulator 7366 accumulates thegenerated multiplexed signal. Additionally, update data accumulator 7366uploads the multiplexed signal to cloud server 7350.

Cloud server 7350 synthesizes the point cloud data. Specifically,demultiplexer 7351 obtains the first encoded data and the second encodeddata by demultiplexing the multiplexed signal uploaded to cloud server7350. Decoder 7352A obtains the first point cloud data (or sensorsignal) by decoding the first encoded data. Decoder 7352B obtains thesecond point cloud data (or sensor signal) by decoding the secondencoded data.

Point cloud data synthesizer 7353 synthesizes the first point cloud dataand the second point cloud data with a predetermined method. When thesynchronization information and the geometry correction information aremultiplexed in the multiplexed signal, point cloud data synthesizer 7353may perform synthesis by using these pieces of information.

Decoder 7355 demultiplexes and decodes the large data accumulated inlarge data accumulator 7354. Comparator 7356 compares the point clouddata generated based on the sensor signal obtained by edge 7360 with thelarge data held by cloud server 7350, and determines the point clouddata that needs to be updated. Comparator 7356 updates the point clouddata that is determined to need to be updated of the large data to thepoint cloud data obtained from edge 7360.

Encoder 7357 encodes and multiplexes the updated large data, andaccumulates the obtained data in large data accumulator 7354.

As described above, the signals to be handled may be different, and thesignals to be multiplexed or encoding methods may be different,according to the usage or applications to be used. Even in such a case,flexible decoding and application processes are enabled by multiplexingdata of various encoding schemes by using the present embodiment.Additionally, even in a case where the encoding schemes of signals aredifferent, by conversion to an encoding scheme suitable fordemultiplexing, decoding, data conversion, encoding, and multiplexingprocessing, it becomes possible to build various applications andsystems, and to offer of flexible services.

Hereinafter, an example of decoding and application of divided data willbe described. First, the information on divided data will be described.FIG. 97 is a diagram illustrating a configuration example of abitstream. The general information of divided data indicates, for eachdivided data, the sensor ID (sensor_id) and data ID (data_id) of thedivided data. Note that the data ID is also indicated in the header ofeach encoded data.

Note that the general information of divided data illustrated in FIG. 97includes, in addition to the sensor ID, at least one of the sensorinformation (Sensor), the version (Version) of the sensor, the makername (Maker) of the sensor, the mount information (Mount Info.) of thesensor, and the position coordinates of the sensor (World Coordinate).Accordingly, the three-dimensional data decoding device can obtain theinformation on various sensors from the configuration information.

The general information of divided data may be stored in SPS, GPS, orAPS, which is the metadata, or may be stored in SEI, which is themetadata not required for encoding. Additionally, at the time ofmultiplexing, the three-dimensional data encoding device stores the SEIin a file of ISOBMFF. The three-dimensional data decoding device canobtain desired divided data based on the metadata.

In FIG. 97, SPS is the metadata of the entire encoded data, GPS is themetadata of the geometry information, APS is the metadata for eachattribute information, G is encoded data of the geometry information foreach divided data, and A1, etc. are encoded data of the attributeinformation for each divided data.

Next, an application example of divided data will be described. Anexample of application will be described in which an arbitrary pointcloud is selected, and the selected point cloud is presented. FIG. 98 isa flowchart of a point cloud selection process performed by thisapplication. FIG. 99 to FIG. 101 are diagrams illustrating screenexamples of the point cloud selection process.

As illustrated in FIG. 99, the three-dimensional data decoding devicethat performs the application includes, for example, a UI unit thatdisplays an input UI (user interface) 8661 for selecting an arbitrarypoint cloud. Input UI 8661 includes presenter 8662 that presents theselected point cloud, and an operation unit (buttons 8663 and 8664) thatreceives operations by a user. After a point cloud is selected in UI8661, the three-dimensional data decoding device obtains desired datafrom accumulator 8665.

First, based on an operation by the user on input UI 8661, the pointcloud information that the user wants to display is selected (S8631).Specifically, by selecting button 8663, the point cloud based on sensor1 is selected. By selecting button 8664, the point cloud based on sensor2 is selected. Alternatively, by selecting both button 8663 and button8664, the point cloud based on sensor 1 and the point cloud based onsensor 2 are selected. Note that it is an example of the selectionmethod of point cloud, and it is not limited to this.

Next, the three-dimensional data decoding device analyzes the generalinformation of divided data included in the multiplexed signal(bitstream) or encoded data, and specifies the data ID (data_id) of thedivided data constituting the selected point cloud from the sensor ID(sensor_id) of the selected sensor (S8632). Next, the three-dimensionaldata decoding device extracts, from the multiplexed signal, the encodeddata including the specified and desired data ID, and decodes theextracted encoded data to decode the point cloud based on the selectedsensor (S8633). Note that the three-dimensional data decoding devicedoes not decode the other encoded data.

Lastly, the three-dimensional data decoding device presents (forexample, displays) the decoded point cloud (S8634). FIG. 100 illustratesan example in the case where button 8663 for sensor 1 is pressed, andthe point cloud of sensor 1 is presented. FIG. 101 illustrates anexample in the case where both button 8663 for sensor 1 and button 8664for sensor 2 are pressed, and the point clouds of sensor 1 and sensor 2are presented.

Embodiment 7

Hereinafter, a method using a RAHT (Region Adaptive HierarchicalTransform) will be described as another method of encoding the attributeinformation of a three-dimensional point. FIG. 102 is a diagram fordescribing the encoding of the attribute information by using a RAHT.

First, the three-dimensional data encoding device generates Morton codesbased on the geometry information of three-dimensional points, and sortsthe attribute information of the three-dimensional points in the orderof the Morton codes. For example, the three-dimensional data encodingdevice may perform sorting in the ascending order of the Morton codes.Note that the sorting order is not limited to the order of the Mortoncodes, and other orders may be used.

Next, the three-dimensional data encoding device generates ahigh-frequency component and a low-frequency component of the layer L byapplying the Haar conversion to the attribute information of twoadjacent three-dimensional points in the order of the Morton codes. Forexample, the three-dimensional data encoding device may use the Haarconversion of 2×2 matrices. The generated high-frequency component isincluded in a coding coefficient as the high-frequency component of thelayer L, and the generated low-frequency component is used as the inputvalue for the higher layer L+1 of the layer L.

After generating the high-frequency component of the layer L by usingthe attribute information of the layer L, the three-dimensional dataencoding device subsequently performs processing of the layer L+1. Inthe processing of the layer L+1, the three-dimensional data encodingdevice generates a high-frequency component and a low-frequencycomponent of the layer L+1 by applying the Haar conversion to twolow-frequency components obtained by the Haar conversion of theattribute information of the layer L. The generated high-frequencycomponent is included in a coding coefficient as the high-frequencycomponent of the layer L+1, and the generated low-frequency component isused as the input value for the higher layer L+2 of the layer L+1.

The three-dimensional data encoding device repeats such layerprocessing, and determines that the highest layer Lmax has been reachedat the time when a low-frequency component that is input to a layerbecomes one. The three-dimensional data encoding device includes thelow-frequency component of the layer Lmax−1 that is input to the LayerLmax in a coding coefficient. Then, the value of the low-frequencycomponent or high-frequency component included in the coding coefficientis quantized, and is encoded by using entropy encoding or the like.

Note that, when only one three-dimensional point exists as two adjacentthree-dimensional points at the time of application of the Haarconversion, the three-dimensional data encoding device may use the valueof the attribute information of the existing one three-dimensional pointas the input value for a higher layer.

In this manner, the three-dimensional data encoding devicehierarchically applies the Haar conversion to the input attributeinformation, generates a high-frequency component and a low-frequencycomponent of the attribute information, and performs encoding byapplying quantization described later or the like. Accordingly, thecoding efficiency can be improved.

When the attribute information is N dimensional, the three-dimensionaldata encoding device may independently apply the Haar conversion foreach dimension, and may calculate each coding coefficient. For example,when the attribute information is color information (RGB, YUV, or thelike), the three-dimensional data encoding device applies the Haarconversion for each component, and calculates each coding coefficient.

The three-dimensional data encoding device may apply the Haar conversionin the order of the layers L, L+1, . . . , Lmax. The closer to the layerLmax, a coding coefficient including the more low-frequency componentsof the input attribute information is generated.

w0 and w1 shown in FIG. 102 are the weights assigned to eachthree-dimensional point. For example, the three-dimensional dataencoding device may calculate the weight based on the distanceinformation between two adjacent three-dimensional points to which theHaar conversion is applied, or the like. For example, thethree-dimensional data encoding device may improve the coding efficiencysuch that the closer the distance, the greater the weight. Note that thethree-dimensional data encoding device may calculate this weight withanother technique, or need not use the weight.

In the example shown in FIG. 102, the pieces of the input attributeinformation are a0, a1, a2, a3, a4, and a5. Additionally, Ta1, Ta5, Tb1,Tb3, Tc1, and d0 are encoded among the coding coefficients after theHaar conversion. The other coding coefficients (b0, b2, c0 and the like)are medians, and are not encoded.

Specifically, in the example shown in FIG. 102, the high-frequencycomponent Ta1 and the low-frequency component b0 are generated byperforming the Haar conversion on a0 and a1. Here, when the weights w0and w1 are equal, the low-frequency component b0 is the average value ofa0 and a1, and the high-frequency component Ta1 is the differencebetween a0 and a1. Since there is no attribute information to be pairedwith a2, a2 is used as b1 as is. Similarly, since there is no attributeinformation to be paired with a3, a3 is used as b2 as is. Additionally,the high-frequency component Ta5 and the low-frequency component b3 aregenerated by performing the Haar conversion on a4 and a5.

In the layer L+1, the high-frequency component Tb1 and the low-frequencycomponent c0 are generated by performing the Haar conversion on b0 andb1. Similarly, the high-frequency component Tb3 and the low-frequencycomponent c1 are generated by performing the Haar conversion on b2 andb3.

In the layer Lmax−1, the High-frequency component Tc1 and thelow-frequency component d0 are generated by performing the Haarconversion on c0 and c1.

The three-dimensional data encoding device may encode the codingcoefficients to which the Haar conversion has been applied, afterquantizing the coding coefficients. For example, the three-dimensionaldata encoding device performs quantization by dividing the codingcoefficient by the quantization scale (also called the quantization step(QS)). In this case, the smaller the quantization scale, the smaller theerror (quantization error) that may occur due to quantization.Conversely, the larger the quantization scale, the larger thequantization error.

Embodiment 8

In the present embodiment, another example will be illustrated in whichLoD (Level of Detail) layers are generated with low processing volume inthe case of predicting and encoding the pieces of attribute informationof three-dimensional points.

As described above, the three-dimensional data encoding device generatesthe LoD layers by, for example, calculating the distance informationbetween a plurality of three-dimensional points that are input. Thethree-dimensional data encoding device may generate the LoD layers byaligning the input three-dimensional points in the order of Mortoncodes, and selecting (sampling) a three-dimensional point for everycertain constant number of points for the aligned three-dimensionalpoints.

Accordingly, since the three-dimensional data encoding device cangenerate the LoD layers without calculating the distance informationbetween the three-dimensional points, the processing amount can bereduced.

Hereinafter, the present embodiment will be described by using diagrams.

FIG. 103 is a diagram illustrating a first example of a LoD according tothe present embodiment. Note that FIG. 103 is a diagram illustrating thelayers of the LoD in a case where the sampling period is 4 (sampling=4).

For example, the three-dimensional data encoding device selectsthree-dimensional points belonging to each layer of the LoD with thefollowing steps.

Step 1. First, the three-dimensional data encoding device arranges inputthree-dimensional points in the ascending order of a Morton order.

Step 2. Next, the three-dimensional data encoding device selectsthree-dimensional points belonging to the (n+1) layer and higher of theLoD from the three-dimensional points aligned in the order of the Mortonorder, according to the value of sampling period information (sampling).For example, the three-dimensional data encoding device selects athree-dimensional point based on a sampling period indicated by thesampling period information, sets the selected three-dimensional pointto the three-dimensional point belonging to the (n+1) layer and higherof the LoD, and sets a three-dimensional point that has not beenselected to the n layer (for example, the bottom layer) of the LoD.Specifically, for example, when sampling=4, the three-dimensional dataencoding device selects a three-dimensional point from a plurality ofinput three-dimensional points that are aligned in the Morton order forevery four points as illustrated in FIG. 103, sets the selectedthree-dimensional point as a three-dimensional point belonging to the(n+1) layer and higher of the LoD, and sets a three-dimensional pointthat has not been selected as belonging to the n layer (for example, thebottom layer) of the LoD.

Step 3. Next, the three-dimensional data encoding device selects athree-dimensional point belonging to the LoDn+2 layer or higher,according to the value of the sampling period information (sampling).For example, the three-dimensional data encoding device selects athree-dimensional point from the three-dimensional points selected inthe above-described Step 2 based on the sampling period, sets theselected three-dimensional point as a three-dimensional point belongingto the (n+2) layer or higher of the LoD, and sets a three-dimensionalpoint that has not been selected as belonging to the (n+1) layer of theLoD. Specifically, for example, when sampling=4, the three-dimensionaldata encoding device selects a three-dimensional point from thethree-dimensional points selected in the above-described Step 2 forevery four points as illustrated in FIG. 103, sets the selectedthree-dimensional point as a three-dimensional point belonging to thelayer (n+2) or higher of the LoD, and sets a three-dimensional pointthat has not been selected as belonging to the (n+1) layer of the LoD.

Step 4. Subsequently, the three-dimensional data encoding device mayrepeat the process in the above-described Step 3, and may end thegeneration of the LoD at the time when a certain condition is satisfied.For example, the three-dimensional data encoding device may generate thelayers of the LoD, until the number of the three-dimensional pointsbelonging to a higher layer becomes smaller than a threshold value α,which is a value defined in advance. Specifically, for example, since itis determined in advance that α=sampling, the three-dimensional dataencoding device ends the generation of the LoD at the time when thenumber of the three-dimensional points of a higher layer becomes smallerthan the sampling period.

Note that the three-dimensional data encoding device may encode and addthe threshold value α to the header of a bitstream or the like.

Accordingly, the three-dimensional data decoding device can generate thesame number of LoD layers as the three-dimensional data encoding device,and can appropriately decode the bitstream by decoding the thresholdvalue α in the header or the like, and performing the same process asthe three-dimensional data encoding device.

Note that the threshold value α may be specified in advance by theprofile of the standard or the like.

Additionally, the three-dimensional data encoding device may generatethe layers of a LoD, until the number of the layers of the LoD reachesan input maximum total number of layers (maxLoD).

Accordingly, the three-dimensional data encoding device can improve thecoding efficiency by setting appropriate maxLoD values.

Note that the three-dimensional data encoding device may encode and addmaxLoD to the header of a bitstream or the like.

Accordingly, the three-dimensional data decoding device can generate thesame number of layers of a LoD as the three-dimensional data encodingdevice, and can appropriately decode the bitstream, by decoding maxLoDin the header or the like, and performing the same process as thethree-dimensional data encoding device.

Note that maxLoD may be specified in advance by the profile (profile) ofthe standard or the like.

According to the above-described method, since the three-dimensionaldata encoding device can generate the LoD layers without calculating thedistance information between three-dimensional points, the processingamount can be reduced. Additionally, when a spatially dense region (inother words, a region including many three-dimensional points that arespatially close to each other) and a spatially sparse region areincluded in the input three-dimensional points, since thethree-dimensional data encoding device can select three-dimensionalpoints belonging to a higher layer according to the density, the codingefficiency can be improved. For example, in the dense region, thethree-dimensional data encoding device selects more three-dimensionalpoints as a higher layer. Accordingly, since the three-dimensional dataencoding device can utilize more higher-layer three-dimensional pointsfor generation of a predicted value with respect to lower-layerthree-dimensional points included in the dense region, the predictiveefficiency can be improved, and the coding efficiency can be improved.

Note that the three-dimensional data encoding device may encode and addthe sampling period (sampling) to the header of a bitstream or the like.Accordingly, since the three-dimensional data decoding device canrecognize the sampling period used by the three-dimensional dataencoding device, by decoding sampling in the header or the like, thethree-dimensional data decoding device can generate the same LoD in thesame method as the three-dimensional data encoding device. Therefore,the three-dimensional data decoding device can correctly decode thebitstream.

Note that the value of sampling may be specified by the profile, level(level), or the like of the standard or the like.

Additionally, the three-dimensional data encoding device may generatethe predicted value of a three-dimensional point of the n layer of theLoD with reference to the three-dimensional points of the (n+1) layer orhigher of the LoD.

Additionally, the three-dimensional data encoding device may switchwhether or not to generate the predicted value with reference to thethree-dimensional points of the same layer of the LoD, by usinginformation such as EnableReferringSameLoD described above or the like.

FIG. 104 is a diagram illustrating a second example of the LoD accordingto the present embodiment. Note that FIG. 104 is a diagram illustratingthe layers of a LoD in a case where the sampling period is 2(sampling=2), and maxLoD is the (n+2) layer (maxLoD=LoDn+2).

For example, the three-dimensional data encoding device performs theabove-described steps described in FIG. 103, and generates the layers ofthe LoD.

Note that, for example, in the above-described Step 2, thethree-dimensional data encoding device selects a three-dimensional pointfrom a plurality of input three-dimensional points that are aligned inthe Morton order for every two points as illustrated in FIG. 104, setsthe selected three-dimensional point as a three-dimensional pointbelonging to the (n+1) layer or higher of the LoD, and sets athree-dimensional point that has not been selected as belonging to the nlayer (for example, the bottom layer) of the LoD.

Additionally, for example, in the above-described Step 3, thethree-dimensional data encoding device selects a three-dimensional pointfrom the three-dimensional points selected in the above-described Step 2for every two points as illustrated in FIG. 104, sets the selectedthree-dimensional point as a three-dimensional point belonging to the(n+2) layer or higher of the LoD, and sets a three-dimensional pointthat has not been selected as belonging to the (n+1) layer of the LoD.

Additionally, the three-dimensional data encoding device may generatethe predicted value of a three-dimensional point of the n layer of theLoD with reference to the three-dimensional points of the (n+1) layer orhigher of the LoD.

Additionally, the three-dimensional data encoding device may switchwhether or not to generate the predicted value with reference to thethree-dimensional points of the same layer of the LoD, by usinginformation such as EnableReferringSameLoD described above or the like.

FIG. 105 is a diagram illustrating a third example of the LoD accordingto the present embodiment. Note that FIG. 105 is a diagram illustratingthe layers of a LoD in a case where the sampling period is 1(sampling=1), or maxLoD is one layer (maxLoD=1).

For example, when the sampling period (sampling)=1, thethree-dimensional data encoding device selects a three-dimensional pointbelonging to one layer of the LoD with the following steps.

Step 1. First, the three-dimensional data encoding device arranges aplurality of input three-dimensional points in the ascending order ofthe Morton order.

Step 2. Next, the three-dimensional data encoding device sets all of thethree-dimensional points to the n layer of the LoD.

Accordingly, since it becomes unnecessary for the three-dimensional dataencoding device to select the three-dimensional points belonging to eachlayer of the LoD, the processing amount can be reduced.

Note that, when sampling=1, the three-dimensional data encoding devicemay assume that maxLoD=1, and need not add the information of maxLoD tothe header.

Accordingly, the three-dimensional data encoding device can reduce theheader amount.

Additionally, when maxLoD=1, the three-dimensional data encoding devicemay assume that sampling=1, and need not add the information of samplingto the header.

Accordingly, the three-dimensional data encoding device can reduce theheader amount.

Additionally, when sampling=1, the three-dimensional data encodingdevice may assume that EnableReferringSameLoD=1, and need not addEnableReferringSameLoD to the header.

Accordingly, the three-dimensional data encoding device can reduce theheader amount.

Note that it may be specified in advance by the standard or the like sothat EnableReferringSameLoD=0 is not satisfied when sampling=1.

According to the above-described method, since the three-dimensionaldata encoding device can generate the layers of the LoD withoutcalculating the distance information between three-dimensional points,and without selecting sampling points, the processing amount can befurther reduced.

Note that the three-dimensional data encoding device may switch whetheror not to generate the predicted value with reference to thethree-dimensional points of the same layer of the LoD, by usinginformation such as EnableReferringSameLoD described above or the like.

Embodiment 9

FIG. 106 is a diagram for describing a first example of a method forencoding attribute information items of three-dimensional pointsaccording to Embodiment 9. FIG. 107 is a diagram for describing a secondexample of a method for encoding attribute information items ofthree-dimensional points according to Embodiment 9. The encoding methodin the first example is an example of a method for improving codingefficiency, and the encoding method in the second example is an exampleof a method for performing an encoding process with low delay. Theencoding method in the first example can perform encoding with higherefficiency than the encoding method in the second example. The encodingmethod in the second example can perform encoding with lower delay thanthe encoding method in the first example.

In the first example, as illustrated in FIG. 106, in encoding attributeinformation items of three-dimensional points, the three-dimensionaldata encoding device arranges the three-dimensional points being inputin Morton order and generates a layered structure using distanceinformation of a distance between three-dimensional points or the numberof samples, prior to the encoding.

First, the three-dimensional data encoding device arranges thethree-dimensional points being input in the Morton order (S10401).Specifically, the three-dimensional data encoding device calculatesMorton values based on position information items of thethree-dimensional points and arranges the three-dimensional pointsaccording to the Morton values calculated. It should be noted that thearranging of the three-dimensional points in the Morton order will bereferred to also as re-ordering the three-dimensional points in theMorton order.

Next, the three-dimensional data encoding device generates the layeredstructure using the three-dimensional points arranged in the Mortonorder (S10402). Here, an LoD layered structure is generated as thelayered structure. The three-dimensional data encoding device generatesthe LoD layered structure using distances between three-dimensionalpoints and sampling information. The layered structure has, for example,layers. It should be noted that the layered structure generated may be aRAHT layered structure.

Next, the three-dimensional data encoding device uses the layeredstructure generated to perform predictive encoding on the attributeinformation items included in the three-dimensional points (S10403). Abitstream including the attribute information items encoded is thusgenerated.

Next, the encoding method in the second example will be described.

The three-dimensional data encoding device may arrange three-dimensionalpoints being input in the Morton order (S10411) or may skip thearranging. A process of the arranging in the Morton order is the same asthe process of step S10401.

Next, the three-dimensional data encoding device generates a layeredstructure using the three-dimensional points arranged in the Mortonorder or the three-dimensional points not arranged in the Morton order(S10412). As the layered structure, an LoD layered structure isgenerated. It should be noted that the layered structure generated maybe a RAHT layered structure.

The layered structure generated here may include one layer. Thethree-dimensional data encoding device is thus enabled to start encodingof attribute information items at time point t1 at which not less than agiven number of three-dimensional points out of the three-dimensionalpoints being input become able to be referred to, and thethree-dimensional data encoding device can perform the encoding ordecoding with low delay. The given number is, for example, a numberdetermined with search_range. The number determined with search_rangeindicates a range of three-dimensional points that can be referred tofor the predictive encoding. Here, time point t1 at which not less thanthe given number of three-dimensional points become able to be referredto is, for example, a time point at which encoding of positioninformation items of not less than the search_range number is completed,as illustrated in FIG. 108. FIG. 108 is a diagram for describingsearch_range according to Embodiment 9.

Next, the three-dimensional data encoding device uses the layeredstructure generated to perform predictive encoding on the attributeinformation items included in the three-dimensional points (S10413). Abitstream including the attribute information items encoded is thusgenerated.

For example, the three-dimensional data encoding device can encodethree-dimensional points including position information items andattribute information items with low delay by starting the encodingmethod for encoding position information items with low delay accordingto the above-described embodiment, and applying, at a time point whenencoding of not less than the search_range number of positioninformation items is completed, the method for encoding attributeinformation items according to the present embodiment. It should benoted that a value of search_range may be added to a header such as anSPS and shared between the method for encoding position informationitems with generating of a prediction tree used for predicting positioninformation items and the method for encoding attribute informationitems described in the present embodiment, or different values ofsearch_range may be added to a GPS or an APS by the method for encodingposition information items and the method for encoding attributeinformation items. This enables the three-dimensional data encodingdevice to switch reference ranges between the encoding of positioninformation items and the encoding of attribute information items, so asto strike a balance between coding efficiency and processing load.

It should be noted that an identification information item (e.g.,morton_sort_skip_flag) indicating whether to skip the arranging in theMorton order may be added to a header of an APS or the like, and theswitching may be performed according to the identification informationitem. This enables the three-dimensional data encoding device to selectone of low delay coding and high efficiency coding. Further,morton_sort_skip_flag may be added to the header when an LoD layeredstructure includes one layer. This can reduce a code amount of theheader.

It should be noted that, in the above-described second example, theprocesses of steps S10411 and S10412 prior to the predictive encodingare applicable to a process that is performed prior to a process ofcalculating predicted values and decoding attribute information items bythe three-dimensional data decoding device. That is, the encoding may beread as decoding.

FIG. 109 is a diagram illustrating a syntax example of an attributeheader according to Embodiment 9.

In this example, maxLoD indicates a maximum number of layers in an LoDlayered structure. When maxLoD=1, the three-dimensional data encodingdevice may be configured not to add information necessary for generatingthe LoD layered structure to a header or the like. Specifically, thethree-dimensional data encoding device need not add EnableUnuniformLoD,sampling, Thres_Lod[i], and the like to a header. This can reduce a codeamount of the header.

In this example, search_range indicates a range of three-dimensionalpoints that can be referred to for the predictive encoding. It should benoted that a value of search_range may be added to a header such as anSPS and shared between the method for encoding position informationitems with generating of a prediction tree used for predicting positioninformation items and the method for encoding attribute informationitems described in the present embodiment, or different values ofsearch_range may be added to a GPS or an APS by the method for encodingposition information items and the method for encoding attributeinformation items. This enables the three-dimensional data encodingdevice to switch reference ranges between the encoding of positioninformation items and the encoding of attribute information items, so asto strike a balance between coding efficiency and processing load.

EnableUnuniformLoD is information that indicates switching methods forgenerating an LoD layered structure. For example, when a value ofEnableUnuniformLoD is one, a number “sampling” of three-dimensionalpoints is selected at a time, and the LoD layered structure isgenerated. In contrast, when the value of EnableUnuniformLoD is zero,distance information items of distances between three-dimensional pointsare calculated, and the LoD layered structure is generated.

In this example, “sampling” is the number of samples used whenEnableUnuniformLoD=1. It should be noted that the number of samples isdefined as not less than one, and a value obtained by subtracting onefrom the number of samples (sampling−1) may be added to a header. Thiscan reduce a code amount.

Thres_Lod[i] indicates a threshold value at layer i. Layer LoDi isconfigured such that distances between three-dimensional pointsbelonging to layer LoDi are longer than the threshold value indicated byThres_LoD[i]. A value of Thres_Lod[NumLoD−1] (bottom layer) need not beadded to a header, and in this case, the value may be estimated as zero.This can reduce a code amount of the header. Thres_Lod[i] is, forexample, a threshold value of distances used for classifyingthree-dimensional points into layers so that distances between thethree-dimensional points fall within distance values that differ fromone another among the layers. An example of the threshold value ofdistances is threshold value THd used for generating the LoD layeredstructure. Thres_Lod[i] is an example of a layer information item usedfor generating a layered structure constituted by layers.

In this example, morton_sort_skip_flag is information used for switchingwhether to skip the arranging in the Morton order in the generating ofthe LoD layered structure. In other words, morton_sort_skip_flag can beconsidered to be an identification information item indicating whetherto perform re-ordering in the Morton order in a decoding process onthree-dimensional points. When a value of morton_sort_skip_flag is one,morton_sort_skip_flag may indicate that the arranging in the Mortonorder in the generating of the LoD layered structure is to be skipped orindicate that the arranging has been skipped. In contrast, when a valueof morton_sort_skip_flag is zero, morton_sort_skip_flag may indicatethat the arranging in the Morton order in the generating of the LoDlayered structure is not to be skipped or indicate that the arranginghas not been skipped. That is, when three-dimensional points notre-ordered in the Morton order are arranged hierarchically in thegenerating of the layered structure, morton_sort_skip_flag indicatesthat the three-dimensional points are not re-ordered in the Morton orderprior to hierarchical arranging in the decoding process. In addition,when three-dimensional points re-ordered in the Morton order arearranged hierarchically in the generating of the layered structure,morton_sort_skip_flag indicates that the three-dimensional points arere-ordered in the Morton order in the decoding process. This enables thethree-dimensional data encoding device to select one of the low delaycoding and the high efficiency coding. Further, when the LoD layeredstructure includes one layer (i.e., maxLoD=1), the three-dimensionaldata encoding device may add morton_sort_skip_flag to a header. This canreduce a code amount of the header.

The three-dimensional data encoding device may perform entropy encodingon maxLoD, search_range, EnableUnuniformLoD, sampling, Thres_Lod[i], andmorton_sort_skip_flag described above and add them to a header. Thethree-dimensional data encoding device may perform arithmetic encodingon values of maxLoD, search_range, EnableUnuniformLoD, sampling,Thres_Lod[i], and morton_sort_skip_flag described above by, for example,binarizing the values. Further, the three-dimensional data encodingdevice may encode these values as fixed length values to keep itsprocessing load low.

It should be noted that a low delay mode may be defined in a profile ora level of a standard. In this case, when the low delay mode is on,maxLoD and morton_sort_skip_flag may be set to be fixed values such asmaxLoD=1 and morton_sort_skip_flag=1. Alternatively, when the low delaymode is on, maxLoD and morton_sort_skip_flag may be regarded as maxLoD=1and morton_sort_skip_flag=1, and a value of maxLoD and a value ofmorton_sort_skip_flag need not be added to a header. This can reduce acode amount of the header. In a case where maxLoD=1 ormorton_sort_skip_flag=1 is not established when the low delay mode ison, a bitstream including the maxLoD or morton_sort_skip_flag may bedetermined as violating the standard. Further, when the low delay modeis on, the three-dimensional data encoding device may be configured toencode position information items with low delay by the method forencoding position information items using a prediction tree. In a casewhere position information items are encoded not by using the method forencoding position information items using a prediction tree when the lowdelay mode is on, a bitstream including the position information itemsencoded may be determined as violating the standard.

It should be noted that when morton_sort_skip_flag is not included in abitstream, the three-dimensional data decoding device may regard a valueof morton_sort_skip_flag as zero. This enables the three-dimensionaldata decoding device to decode the bitstream appropriately by applyingthe arranging of three-dimensional points in the Morton order withmorton_sort_skip_flag=0.

Although the example described above is an example in whichmorton_sort_skip_flag is added when maxLoD=1; however, this example isnot necessarily limitative, and the three-dimensional data encodingdevice may add morton_sort_skip_flag to a bitstream irrespective of thevalue of maxLoD, for example. This can reduce the processing load byomitting the arranging of three-dimensional points in the Morton ordereven when a Lod having layers is generated. For example, thethree-dimensional data encoding device encodes three-dimensional pointsbeing input after arranging the three-dimensional points in advance insuch a way that distances between the three-dimensional points becomeshort or after arranging the three-dimensional points in the Mortonorder, and the three-dimensional data decoding device decodes attributevalues in an order in which the three-dimensional points are encodedinto a bitstream, without applying the arranging of thethree-dimensional points in the Morton order, by which the processingload can be reduced while coding efficiency is maintained. In this case,the three-dimensional data encoding device may addmorton_sort_skip_flag=1 to the bitstream so that the three-dimensionaldata decoding device does not perform the arranging in the Morton order.

A process flow in the three-dimensional data encoding device will bedescribed below. FIG. 110 is a flowchart of a three-dimensional dataencoding process by the three-dimensional data encoding device.

First, the three-dimensional data encoding device encodes positioninformation items (geometry) (S10421). For example, thethree-dimensional data encoding performs the encoding using octreerepresentation. It should be noted that when the low delay mode is on,the three-dimensional data encoding device may encode positioninformation items of three-dimensional points with low delay by themethod for encoding position information items using a prediction tree.

After the encoding of the position information items, when positions ofthe three-dimensional points are shifted by the quantization or thelike, the three-dimensional data encoding device reallocates attributeinformation items of original three-dimensional points to thethree-dimensional points shifted (S10422). For example, thethree-dimensional data encoding device performs the reallocating byinterpolating values of the attribute information items according toamounts of shifting of the positions. For example, the three-dimensionaldata encoding device detects N three-dimensional points before the shiftthat are close to a three-dimensional point changed, and calculates aweighted average of values of attribute information items of the Nthree-dimensional points. In calculating the weighted average, forexample, the three-dimensional data encoding device determines weightsbased on distances from the three-dimensional point shifted to the Nthree-dimensional points. The three-dimensional data encoding devicethen determines a value obtained by calculating the weighted average asa value of an attribute information item of the three-dimensional pointshifted. In a case where two or more three-dimensional points areshifted to the same three-dimensional point by the quantization or thelike, the three-dimensional data encoding device may allocate an averagevalue of attribute information items of the two or more ofthree-dimensional points before the shift, as values of attributeinformation items of the two or more three-dimensional points shifted.

It should be noted that the three-dimensional data encoding device neednot apply a process of step S10422 when the positions of thethree-dimensional points are not shifted or shifted fractionally by theencoding of position information items. For example, this process neednot be applied in a case where the position information items aresubjected to lossless coding. This can reduce the processing load.

Next, the three-dimensional data encoding device encodes attributeinformation items (Attribute) after the reallocating (S10423). Forexample, when encoding kinds of attribute information items, thethree-dimensional data encoding device may encode the kinds of theattribute information items in turn. For example, in a case where thethree-dimensional data encoding device encodes colors and reflectancesas the attribute information items, the three-dimensional data encodingdevice may generate a bitstream in which a result of the encoding of thecolors, to which a result of the encoding of the reflectances is added.It should be noted that an order of results of the encoding of theattribute information items added to the bitstream is not limited tothis order and may be any order.

The three-dimensional data encoding device may further add informationindicating locations of start positions of encoded data items of thekinds of the attribute information items in the bitstream, to a headeror the like. This enables the three-dimensional data decoding device toselectively decode a kind of attribute information items that need to bedecoded, so that a decoding process of attribute information items thatdo not need to be decoded can be omitted. This can reduce the processingload of the three-dimensional data decoding device. Alternatively, thethree-dimensional data encoding device may encode kinds of attributeinformation items concurrently and integrate results of the encodinginto a single bitstream. This enables the three-dimensional dataencoding device to encode kinds of attribute information items at highspeed.

FIG. 111 is a flowchart of an attribute information item encodingprocess (S10423).

First, the three-dimensional data encoding device sets LoDs (S10431).That is, the three-dimensional data encoding device allocates each ofthree-dimensional points to any one of LoDs.

Next, the three-dimensional data encoding device starts a loop on an LoDbasis (S10432). That is, the three-dimensional data encoding devicerepeats the processes of steps S10433 to S10441 for each LoD.

Next, the three-dimensional data encoding device starts a loop on athree-dimensional point basis (S10433). That is, the three-dimensionaldata encoding device repeats the processes of steps S10434 to S10440 foreach three-dimensional point.

First, the three-dimensional data encoding device searches for neighborpoints that are three-dimensional points present around a targetthree-dimensional point being a processing target and are used forcalculating a predicted value of the target three-dimensional point(S10434). Specifically, the three-dimensional data encoding devicesearches for the neighbor points by the method described in the otherembodiment and determines possible three-dimensional points forgenerating a predicted value.

Next, the three-dimensional data encoding device calculates predictedvalue P of the target three-dimensional point (S10435).

Next, the three-dimensional data encoding device calculates a predictionresidual that is a difference between an attribute information item ofthe target three-dimensional point and the predicted value (S10436).

Next, the three-dimensional data encoding device calculates a quantizedvalue by quantizing the prediction residual (S10437).

Next, the three-dimensional data encoding device performs arithmeticencoding on a quantized value (S10438).

Next, the three-dimensional data encoding device performs inversequantization on the quantized value to calculate an inverse-quantizedvalue (S10439).

Next, the three-dimensional data encoding device generates a decodedvalue by adding the predicted value to the inverse-quantized value(S10440).

Next, the three-dimensional data encoding device ends the loop on thethree-dimensional point basis (S10441).

Further, the three-dimensional data encoding device ends the loop on theLoD basis (S10442).

FIG. 112 is a flowchart of a process of setting LoDs (S10431) in theattribute information item encoding process.

First, the three-dimensional data encoding device determines whether thelow delay mode is on (S10451). The low delay mode may be defined in aprofile, a level, or the like of a standard, and the three-dimensionaldata encoding device may use information defined in the profile, thelevel, or the like to determine whether the low delay mode is on.Alternatively, the three-dimensional data encoding device may determinewhether the low delay mode is on according to content to be encoded. Forexample, in a case where point cloud data obtained with lidar or thelike is encoded in real time, the three-dimensional data encoding devicemay turn on the low delay mode and encode the point cloud data;otherwise, the three-dimensional data encoding device may turn off thelow delay mode and encode the point cloud data. This enables thethree-dimensional data encoding device to switch between the low delaycoding and the high efficiency coding according to a usage of theencoder. It should be noted that the point cloud data includes positioninformation items and attribute information items of three-dimensionalpoints.

Next, when determining that the low delay mode is on (Yes in S10451),the three-dimensional data encoding device sets the value of maxLoD toone and the value of morton_sort_skip_flag to one, generates a layeredstructure including one layer without arranging three-dimensional pointsin the Morton order, and performs predictive encoding on attributeinformation items of the three-dimensional points using the layeredstructure generated (S10452). That is, the layered structure in thiscase includes one layer.

Next, the three-dimensional data encoding device encodes maxLoD=1 andmorton_sort_skip_flag=1 and adds them to a header (S10453). In thiscase, the three-dimensional data encoding device generates a firstbitstream including morton_sort_skip_flag (identification informationitem) and the attribute information items encoded. The first bitstreamneed not include Thres_Lod[i] (layer information item).

In contrast, when determining that the low delay mode is off (No inS10451), the three-dimensional data encoding device generates a layeredstructure having layers and encodes attribute information items of thethree-dimensional points using the layered structure (S10454). In thiscase, the three-dimensional data encoding device generates a secondbitstream including Thres_Lod[i] (layer information item) and theattribute information items encoded. The second bitstream need notinclude morton_sort_skip_flag (identification information item).

It should be noted that when maxLoD=1, the three-dimensional dataencoding device need not add information necessary for generating theLoD layered structure to the header or the like. Specifically, whenmaxLoD=1, the three-dimensional data encoding device need not addEnableUnuniformLoD, sampling, Thres_Lod[i], and the like to the header.This can reduce a code amount of the header.

It should be noted that the layered structure generated by thethree-dimensional data encoding device is an LoD layered structure. Thislayered structure is generated by classifying each of thethree-dimensional points into one or more layers in such a way that adistance between three-dimensional points belonging to a higher layer islonger than a distance between three-dimensional points belonging to alower layer.

A process flow in the three-dimensional data decoding device will bedescribed below. FIG. 113 is a flowchart of a three-dimensional datadecoding process by the three-dimensional data decoding device. First,the three-dimensional data decoding device decodes the positioninformation items (geometry) from the bitstream (S10461). For example,the three-dimensional data decoding device performs the decoding usingthe octree representation. It should be noted that when the low delaymode is on, the three-dimensional data decoding device may decode theposition information items with low delay by the method for encodingposition information items using a prediction tree.

Next, the three-dimensional data decoding device decodes the attributeinformation items (Attribute) from the bitstream (S10462). For example,when decoding kinds of attribute information items, thethree-dimensional data decoding device may decode the kinds of theattribute information items in turn. For example, in a case where thethree-dimensional data decoding device decodes colors and reflectancesas the attribute information items, the three-dimensional data decodingdevice decodes the result of the encoding of the colors and the resultof the encoding of the reflectances in an order in which the results areadded to the bitstream. For example, in a case of a bitstream in whichthe result of the encoding of the reflectances is added after the resultof the encoding of the colors, the three-dimensional data decodingdevice decodes the result of the encoding of the colors and then decodesthe result of the encoding of the reflectances. It should be noted thatthe three-dimensional data decoding device may decode the result of theencoding of the attribute information items added to the bitstream inany order.

The three-dimensional data decoding device may decode the header or thelike to obtain the information indicating the locations of the startpositions of the encoded data items of the kinds of the attributeinformation items in the bitstream. This enables the three-dimensionaldata decoding device to selectively decode a kind of attributeinformation items that need to be decoded, so that a decoding process ofattribute information items that do not need to be decoded can beomitted. This can reduce the processing load of the three-dimensionaldata decoding device. Alternatively, the three-dimensional data decodingdevice may decode kinds of attribute information items concurrently andintegrate results of the decoding into a three-dimensional point cloud.This enables the three-dimensional data decoding device to decode kindsof attribute information items at high speed.

FIG. 114 of a flowchart of an attribute information item decodingprocess (S10462). First, the three-dimensional data decoding device setsLoDs (S10471). That is, the three-dimensional data decoding deviceallocates each of three-dimensional points having position informationitems decoded to any one of LoDs. For example, a method for theallocating is the same as the method used by the three-dimensional dataencoding device.

Next, the three-dimensional data decoding device starts a loop on an LoDbasis (S10472). That is, the three-dimensional data decoding devicerepeats the processes of steps S10473 to S10479 for each LoD.

Next, the three-dimensional data decoding device starts a loop on athree-dimensional point basis (S10473). That is, the three-dimensionaldata decoding device repeats the processes of steps S10474 to S10478 foreach three-dimensional point.

First, the three-dimensional data decoding device searches for neighborpoints that are three-dimensional points present around a targetthree-dimensional point being a processing target and are used forcalculating a predicted value of the target three-dimensional point(S10474). It should be noted that this process is the same as theprocess by the three-dimensional data encoding device.

Next, the three-dimensional data decoding device calculates predictedvalue P of the target three-dimensional point (S10475).

Next, the three-dimensional data decoding device performs arithmeticdecoding on a quantized value from the bitstream (S10476).

The three-dimensional data decoding device performs inverse quantizationon the quantized value decoded to calculate an inverse-quantized value(S10477).

Next, the three-dimensional data decoding device generates a decodedvalue by adding the predicted value to the inverse-quantized value(S10478).

Next, the three-dimensional data decoding device ends a loop on athree-dimensional point basis (S10479).

Further, the three-dimensional data decoding device ends the loop on theLoD basis (S10480).

FIG. 115 is a flowchart of a process of setting LoDs (S10471) in theattribute-information-item decoding process.

First, the three-dimensional data decoding device decodes maxLoDincluded in the bitstream (S10481). For example, maxLoD is included inthe header (an attribute header) included in the bitstream.

Next, the three-dimensional data decoding device determines whether avalue of maxLoD decoded is one (S10482). When the value of maxLoD isone, the bitstream includes morton_sort_skip_flag (identificationinformation item), and when the value of maxLoD is not one, thebitstream does not include morton_sort_skip_flag (identificationinformation item). That is, the bitstream being a first bitstreamincluding the identification information item indicates that a layeredstructure including one layer is generated by hierarchically arrangingthe three-dimensional points in encoding.

When the value of maxLoD decoded is one (Yes in S10482), thethree-dimensional data decoding device decodes morton_sort_skip_flag(identification information item) included in the bitstream (S10483).For example, morton_sort_skip_flag (identification information item) isincluded in the header (attribute header) included in the bitstream.

Next, the three-dimensional data decoding device determines whether avalue of morton_sort_skip_flag decoded is one (S10484).

Next, when the value of morton_sort_skip_flag decoded is one (Yes inS10484), the three-dimensional data decoding device generates a layeredstructure including one layer without arranging three-dimensional pointsin the Morton order, and performs predictive decoding on attributeinformation items of the three-dimensional points using the layeredstructure generated (S10485). That is, when the morton_sort_skip_flagindicates that the three-dimensional points are not re-ordered in theMorton order before hierarchically arranging the three-dimensionalpoints in encoding, the three-dimensional data decoding device generatesthe layered structure including one layer by hierarchically arrangingthe three-dimensional points without re-ordering the three-dimensionalpoints in the Morton order, based on position information items of thethree-dimensional points. Then, in a subsequent process, thethree-dimensional data decoding device decodes the attribute informationitems encoded using the layered structure generated.

When the value of morton_sort_skip_flag decoded is not one (No inS10484), the three-dimensional data decoding device arrangesthree-dimensional points in the Morton order, generates a layeredstructure including one layer, and performs predictive decoding onattribute information items of the three-dimensional points using thelayered structure generated (S10486). That is, when themorton_sort_skip_flag indicates that the three-dimensional points arere-ordered in the Morton order before hierarchically arranging thethree-dimensional points in encoding, the three-dimensional datadecoding device generates the layered structure including one layer byre-ordering the three-dimensional points in the Morton order based onposition information items of the three-dimensional points andhierarchically arranging the three-dimensional points re-ordered. Then,in a subsequent process, the three-dimensional data decoding devicedecodes the attribute information items encoded using the layeredstructure generated.

When the value of maxLoD decoded is not one (No in S10482), thethree-dimensional data decoding device generates a layered structureincluding layers by hierarchically arranging three-dimensional pointsusing a layer information item included in the bitstream. Then, in asubsequent process, the three-dimensional data decoding device performspredictive decoding on attribute information items of thethree-dimensional points using the layered structure generated (S10487).

In this way, the three-dimensional data decoding device performsdifferent processes according to a result of the determination in stepS10482. That is, the three-dimensional data decoding device decodes theattribute information items encoded according to whether the bitstreamincludes the identification information item.

It should be noted that the layered structure generated by thethree-dimensional data decoding device is an LoD layered structure. Thislayered structure is generated by classifying each of thethree-dimensional points into one or more layers in such a way that adistance between three-dimensional points belonging to a higher layer islonger than a distance between three-dimensional points belonging to alower layer.

FIG. 116 is a block diagram illustrating a configuration of attributeinformation encoder 10400 included in the three-dimensional dataencoding device. It should be noted that the three-dimensional dataencoding device includes a position information encoder, an attributeinformation reallocator, and an attribute information encoder, out ofwhich FIG. 116 illustrates the attribute information encoder in detail.

Attribute information encoder 10400 includes LoD generator 10401,neighbor searcher 10402, predictor 10403, prediction residual calculator10404, quantizer 10405, arithmetic encoder 10406, inverse quantizer10407, decoded value generator 10408, and memory 10409.

LoD generator 10401 generates LoDs using position information items(geometry) of three-dimensional points. LoD generator 10401 sets thevalue of morton_sort_skip_flag according to whether the low delay modeis on, and when morton_sort_skip_flag=1, LoD generator 10401 maygenerate an LoD layered structure without applying arranging ofthree-dimensional points in the Morton order.

Neighbor searcher 10402 uses a result of the generating of LoDs by LoDgenerator 10401 and distance information items indicating distancesbetween the three-dimensional points to search for neighboringthree-dimensional points neighboring each of the three-dimensionalpoints.

Predictor 10403 generates a predicted value of an attribute informationitem of a target three-dimensional point to be encoded. Specifically,predictor 10403 allocates predicted values to predicting modes of whichprediction mode values are indicated as “0” to “M−1”. Predictor 10403outputs the prediction mode selected, specifically a predicting modevalue indicating the prediction mode, to the arithmetic encoder.Predictor 10403 performs, for example, the process of step S10435. Itshould be noted that in calculating of the predicted value, thepredicted value may be calculated not by using the prediction mode. Forexample, one of possible three-dimensional points may be selected, andan attribute information item of the three-dimensional point selectedmay be calculated as the predicted value.

Prediction residual calculator 10404 calculates (generates) a predictionresidual of the predicted value of the attribute information itemgenerated by predictor 10403. Prediction residual calculator 10404performs the process of step S10436.

Quantizer 10405 quantizes the prediction residual of the attributeinformation item calculated by prediction residual calculator 10404.

Arithmetic encoder 3106 performs arithmetic encoding on the predictionresidual quantized by quantizer 3105. Arithmetic encoder 10406 outputs abitstream including the prediction residual subjected to the arithmeticencoding to, for example, the three-dimensional data decoding device.

It should be noted that the prediction residual may be binarized by, forexample, quantizer 10405 before the arithmetic encoding by arithmeticencoder 10406. Arithmetic encoder 10406 may generate and encode variouskinds of header information items. Further, arithmetic encoder 10406 mayobtain the prediction mode used for the encoding from Prediction block,perform arithmetic encoding on the prediction mode, and add theprediction mode to the bitstream.

Inverse quantizer 10407 performs inverse quantization on the predictionresidual quantized by quantizer 10405. Inverse quantizer 10407 performsthe process of step S10439.

Decoded value generator 10408 generates a decoded value by adding thepredicted value of the attribute information item generated by predictor10403 and the prediction residual inverse-quantized by inverse quantizer10407.

Memory 10409 is a memory that stores decoded values of the attributeinformation items of the three-dimensional points decoded by decodedvalue generator 10408. For example, in a case where predicted values ofthree-dimensional points that have not been encoded are to be generated,predictor 10403 generates the predicted values using the decoded valuesof the attribute information items of the three-dimensional pointsstored in memory 10409.

FIG. 117 is a block diagram illustrating a configuration of attributeinformation decoder 10410 included in the three-dimensional datadecoding device. It should be noted that the three-dimensional datadecoding device includes a position information decoder, and anattribute information decoder, out of which FIG. 117 illustrates theattribute information decoder in detail.

Attribute information decoder 10410 includes LoD generator 10411,neighbor searcher 10412, predictor 10413, arithmetic decoder 10414,inverse quantizer 10415, decoded value generator 10416, and memory10417.

LoD generator 10411 generates LoDs using position information items(geometry information items) of three-dimensional points that aredecoded by the position information decoder (not illustrated). When thevalue of morton_sort_skip_flag obtained by decoding the header is one,LoD generator 10411 may generate an LoD layered structure withoutapplying arranging of three-dimensional points in the Morton order.

Neighbor searcher 10412 uses a result of the generating of LoDs by LoDgenerator 10411 and distance information items indicating distancesbetween the three-dimensional points to search for neighboringthree-dimensional points neighboring each of the three-dimensionalpoints.

Predictor 10413 generates a predicted value of an attribute informationitem of a target three-dimensional point to be decoded. Predictor 10413performs, for example, the process of step S10475.

Arithmetic decoder 10414 performs arithmetic decoding on the predictionresidual in the bitstream obtained by attribute information encoder10400. Arithmetic decoder 10414 may decode various kinds of headerinformation items. Further, arithmetic decoder 10414 may output theprediction mode subjected to arithmetic decoding to predictor 10413. Inthis case, predictor 10413 may calculate the predicted value using theprediction mode obtained by arithmetic decoding in arithmetic decoder10414.

Inverse quantizer 10415 performs inverse quantization on the predictionresidual subjected to the arithmetic decoding by arithmetic decoder10414.

Decoded value generator 10416 generates the decoded value by adding thepredicted value generated by predictor 10413 and the prediction residualinverse-quantized by inverse quantizer 10415. Decoded value generator10416 outputs the attribute information item data items decoded toanother device.

Memory 10417 is a memory that stores decoded values of the attributeinformation items of the three-dimensional points decoded by decodedvalue generator 10416. For example, in a case where predicted values ofthree-dimensional points that have not been decoded are to be generated,predictor 10413 generates the predicted values using the decoded valuesof the attribute information items of the three-dimensional pointsstored in memory 10417.

A scheme to switch whether to arrange three-dimensional points in theMorton order and encode or decode the three-dimensional points may beapplied to a method other than the method in which an LoD layeredstructure is generated for the predictive encoding or decoding. Forexample, the scheme may be applied to a RAHT layered structure.Specifically, the three-dimensional data encoding device may switchwhether to arrange three-dimensional points in the Morton orderaccording to the value of morton_sort_skip_flag before RAHT transform orgenerating the RAHT layered structure. This enables a balance betweenreduction of the processing load and increase of coding efficiency. Forexample, the three-dimensional data encoding device encodesthree-dimensional points being input by applying the RAHT layeredstructure after arranging the three-dimensional points in advance insuch a way that distances between the three-dimensional points becomeshort or after arranging the three-dimensional points in the Mortonorder, and the three-dimensional data decoding device decodes attributevalues by applying the inverse RAHT transform in an order in which thethree-dimensional points are encoded into a bitstream, without applyingthe arranging of the three-dimensional points in the Morton order, bywhich the processing load can be reduced while coding efficiency ismaintained. In this case, the three-dimensional data encoding device mayadd morton_sort_skip_flag=0 to the bitstream so that thethree-dimensional data decoding device does not perform the arranging ofthe three-dimensional points in the Morton order.

As stated above, the three-dimensional data encoding device according tothe present embodiment performs the process shown in FIG. 118. Thethree-dimensional data encoding device generates a layered structureincluding one or more layers by hierarchically arrangingthree-dimensional points each having an attribute information item(S10491), encodes the attribute information item of each of thethree-dimensional points using the layered structure, and generates afirst bitstream including the attribute information item encoded and anidentification information item indicating whether the three-dimensionalpoints are re-ordered in Morton order (S10492).

As a result, a three-dimensional data decoding device can be notified ofwhether low delay coding or high efficiency coding has been performed.

For example, when the identification information item indicates that thethree-dimensional points are not re-ordered in the Morton order, in thegenerating of the layered structure, the three-dimensional points arenot re-ordered in the Morton order.

For example, when the identification information item indicates that thethree-dimensional points are re-ordered in the Morton order, in thegenerating of the layered structure, the three-dimensional points arere-ordered in the Morton order.

For example, the layered structure includes one layer.

For example, the layered structure includes two or more layers, and thethree-dimensional points are classified into the two or more layers insuch a way that a distance between three-dimensional points belonging toa higher layer is longer than a distance between three-dimensionalpoints belonging to a lower layer.

For example, the three-dimensional data encoding method further includesgenerating a second bitstream when the layered structure includes two ormore layers, the second bitstream including the attribute informationitem encoded and a layer information item used in generating the layeredstructure including the layers.

For example, the second bitstream does not include the identificationinformation item.

For example, the three-dimensional data encoding device includes aprocessor and memory. Using the memory, the processor performs theabove-described process.

The three-dimensional data decoding device according to the presentembodiment performs the process shown in FIG. 119. The three-dimensionaldata decoding device obtains a bitstream including an attributeinformation item encoded based on three-dimensional points arrangedhierarchically to form a layered structure including one or more layers(S10493), and decodes the attribute information item encoded, based onwhether the bitstream includes an identification information itemindicating whether the three-dimensional points are re-ordered in Mortonorder (S10494).

As a result, the attribute information items of the three-dimensionalpoints can be decoded appropriately.

For example, in the decoding (S10494), in a case where the bitstream isa first bitstream including the identification information item, whenthe identification information item indicates that the three-dimensionalpoints are not re-ordered in the Morton order, the layered structure isgenerated by hierarchically arranging the three-dimensional pointswithout re-ordering the three-dimensional points in the Morton order,and the attribute information item encoded is decoded using the layeredstructure.

For example, in the decoding (S10494), in a case where the bitstream isa first bitstream including the identification information item, whenthe identification information item indicates that the three-dimensionalpoints are re-ordered in the Morton order, the three-dimensional pointsare re-ordered in the Morton order, based on position information itemsof the three-dimensional points, the layered structure is generated byhierarchically arranging the three-dimensional points re-ordered, andthe attribute information item encoded is decoded using the layeredstructure generated.

For example, the first bitstream indicates that a layered structureincluding one layer is generated.

For example, the layered structure includes two or more layers, and thethree-dimensional points are classified into the two or more layers insuch a way that a distance between three-dimensional points belonging toa higher layer is longer than a distance between three-dimensionalpoints belonging to a lower layer.

For example, in the decoding, in a case where the layered structureincludes two or more layers, and the bitstream is a second bitstreamincluding a layer information item used in generating a layeredstructure including layers, the layered structure including the layersis generated by hierarchically arranging the three-dimensional pointsusing the layer information item, and the attribute information itemencoded is decoded using the layered structure generated.

For example, the second bitstream does not include the identificationinformation item.

For example, the three-dimensional data decoding device includes aprocessor and memory. Using the memory, the processor performs theabove-described process.

A three-dimensional data encoding device, a three-dimensional datadecoding device, and the like according to the embodiments of thepresent disclosure have been described above, but the present disclosureis not limited to these embodiments.

Note that each of the processors included in the three-dimensional dataencoding device, the three-dimensional data decoding device, and thelike according to the above embodiments is typically implemented as alarge-scale integrated (LSI) circuit, which is an integrated circuit(IC). These may take the form of individual chips, or may be partiallyor entirely packaged into a single chip.

Such IC is not limited to an LSI, and thus may be implemented as adedicated circuit or a general-purpose processor. Alternatively, a fieldprogrammable gate array (FPGA) that allows for programming after themanufacture of an LSI, or a reconfigurable processor that allows forreconfiguration of the connection and the setting of circuit cellsinside an LSI may be employed.

Moreover, in the above embodiments, the structural components may beimplemented as dedicated hardware or may be realized by executing asoftware program suited to such structural components. Alternatively,the structural components may be implemented by a program executor suchas a CPU or a processor reading out and executing the software programrecorded in a recording medium such as a hard disk or a semiconductormemory.

The present disclosure may also be implemented as a three-dimensionaldata encoding method, a three-dimensional data decoding method, or thelike executed by the three-dimensional data encoding device, thethree-dimensional data decoding device, and the like.

Also, the divisions of the functional blocks shown in the block diagramsare mere examples, and thus a plurality of functional blocks may beimplemented as a single functional block, or a single functional blockmay be divided into a plurality of functional blocks, or one or morefunctions may be moved to another functional block. Also, the functionsof a plurality of functional blocks having similar functions may beprocessed by single hardware or software in a parallelized ortime-divided manner.

Also, the processing order of executing the steps shown in theflowcharts is a mere illustration for specifically describing thepresent disclosure, and thus may be an order other than the shown order.Also, one or more of the steps may be executed simultaneously (inparallel) with another step.

A three-dimensional data encoding device, a three-dimensional datadecoding device, and the like according to one or more aspects have beendescribed above based on the embodiments, but the present disclosure isnot limited to these embodiments. The one or more aspects may thusinclude forms achieved by making various modifications to the aboveembodiments that can be conceived by those skilled in the art, as wellforms achieved by combining structural components in differentembodiments, without materially departing from the spirit of the presentdisclosure.

Although only some exemplary embodiments of the present disclosure havebeen described in detail above, those skilled in the art will readilyappreciate that many modifications are possible in the exemplaryembodiments without materially departing from the novel teachings andadvantages of the present disclosure. Accordingly, all suchmodifications are intended to be included within the scope of thepresent disclosure.

INDUSTRIAL APPLICABILITY

The present disclosure is applicable to a three-dimensional dataencoding device and a three-dimensional data decoding device.

What is claimed is:
 1. A three-dimensional data encoding methodcomprising: generating a layered structure including one or more layersby hierarchically arranging three-dimensional points each having anattribute information item; encoding the attribute information item ofeach of the three-dimensional points using the layered structure; andgenerating a first bitstream including the attribute information itemencoded and an identification information item indicating whether thethree-dimensional points are re-ordered in Morton order.
 2. Thethree-dimensional data encoding method according to claim 1, whereinwhen the identification information item indicates that thethree-dimensional points are not re-ordered in the Morton order, in thegenerating of the layered structure, the three-dimensional points arenot re-ordered in the Morton order.
 3. The three-dimensional dataencoding method according to claim 1, wherein when the identificationinformation item indicates that the three-dimensional points arere-ordered in the Morton order, in the generating of the layeredstructure, the three-dimensional points are re-ordered in the Mortonorder.
 4. The three-dimensional data encoding method according to claim1, wherein the layered structure includes one layer.
 5. Thethree-dimensional data encoding method according to claim 1, wherein thelayered structure includes two or more layers, and the three-dimensionalpoints are classified into the two or more layers in such a way that adistance between three-dimensional points belonging to a higher layer islonger than a distance between three-dimensional points belonging to alower layer.
 6. The three-dimensional data encoding method according toclaim 1, further comprising: generating a second bitstream when thelayered structure includes two or more layers, the second bitstreamincluding the attribute information item encoded and a layer informationitem used in generating the layered structure including the layers. 7.The three-dimensional data encoding method according to claim 6, whereinthe second bitstream does not include the identification informationitem.
 8. A three-dimensional data decoding method comprising: obtaininga bitstream including an attribute information item encoded based onthree-dimensional points arranged hierarchically to form a layeredstructure including one or more layers; and decoding the attributeinformation item encoded, based on whether the bitstream includes anidentification information item indicating whether the three-dimensionalpoints are re-ordered in Morton order.
 9. The three-dimensional datadecoding method according to claim 8, wherein in the decoding, in a casewhere the bitstream is a first bitstream including the identificationinformation item, when the identification information item indicatesthat the three-dimensional points are not re-ordered in the Mortonorder, the layered structure is generated by hierarchically arrangingthe three-dimensional points without re-ordering the three-dimensionalpoints in the Morton order, and the attribute information item encodedis decoded using the layered structure.
 10. The three-dimensional datadecoding method according to claim 8, wherein in the decoding, in a casewhere the bitstream is a first bitstream including the identificationinformation item, when the identification information item indicatesthat the three-dimensional points are re-ordered in the Morton order,the three-dimensional points are re-ordered in the Morton order, basedon position information items of the three-dimensional points, thelayered structure is generated by hierarchically arranging thethree-dimensional points re-ordered, and the attribute information itemencoded is decoded using the layered structure generated.
 11. Thethree-dimensional data decoding method according to claim 9, wherein thefirst bitstream indicates that a layered structure including one layeris generated.
 12. The three-dimensional data decoding method accordingto claim 8, wherein the layered structure includes two or more layers,and the three-dimensional points are classified into the two or morelayers in such a way that a distance between three-dimensional pointsbelonging to a higher layer is longer than a distance betweenthree-dimensional points belonging to a lower layer.
 13. Thethree-dimensional data decoding method according to claim 8, wherein inthe decoding, in a case where the layered structure includes two or morelayers, and the bitstream is a second bitstream including a layerinformation item used in generating a layered structure includinglayers, the layered structure including the layers is generated byhierarchically arranging the three-dimensional points using the layerinformation item, and the attribute information item encoded is decodedusing the layered structure generated.
 14. The three-dimensional datadecoding method according to claim 13, wherein the second bitstream doesnot include the identification information item.
 15. A three-dimensionaldata encoding device comprising: a processor; and memory, wherein usingthe memory, the processor: generates a layered structure including oneor more layers by hierarchically arranging three-dimensional points eachhaving an attribute information item; encodes the attribute informationitem of each of the three-dimensional points using the layeredstructure; and generates a first bitstream including the attributeinformation item encoded and an identification information itemindicating whether the three-dimensional points are re-ordered in Mortonorder.
 16. A three-dimensional data decoding device comprising: aprocessor; and memory, wherein using the memory, the processor: obtainsa bitstream including an attribute information item encoded based onthree-dimensional points arranged hierarchically to form a layeredstructure including one or more layers; and decodes the attributeinformation item encoded, based on whether the bitstream includes anidentification information item indicating whether the three-dimensionalpoints are re-ordered in Morton order.